Created
November 11, 2015 16:07
-
-
Save schlady/d7ba3dbfd8f31be87078 to your computer and use it in GitHub Desktop.
systemd service file for Mathematica network license manager MathLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Mathematica network license manager | |
After=network.target | |
[Service] | |
ExecStart=/usr/sbin/mathlm -foreground -logfile /var/log/mathlm.log -pwfile /opt/Wolfram/MathLM/mathpass | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target | |
Alias=mathlm.service |
Thx for feedback.
You are right in all points. The logfile option was for legacy behaviour.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this example!
I found the
Alias=mathlm.service
causes issues with SystemD. I also don't think-logfile
is necessary as, by default, it will log to stdout, which can then be handled nicely by SystemD.-pwfile
isn't necessary as the defaults from the setup script work fine, but worth keeping in case anyone needs it. I also wanted to use a less privileged user:wolfram
.In case anyone wants a more complete example:
Check status: