/etc/systemd/system/mathlm.service
[Unit]
Description = mathlm loader
After=local-fs.target
ConditionPathExists=/usr/local/Wolfram/MathLM
[Service]
ExecStart=/usr/local/Wolfram/MathLM/mathlm -foreground
Restart=always
Type=simple
[Install]
WantedBy=multi-user.target
rootで以下を実行.
chown root:root /etc/systemd/system/mathlm.service
chmod 644 /etc/systemd/system/mathlm.service
systemctl daemon-reload
systemctl enable mathlm
今後は再起動後に自動実行される.
今すぐ起動する場合は
systemctl start mathlm