I'm not interested in getting a sysV script working. I've read about a lot of problems of broken sysV scripts due to systemd, and a much simpler "fix" than fiddling around with broken sysV init scripts would simply be to add it to my bashrc. I want to know if I can stop the processes from dying when the start script has finished.
In case I misunderstand you, and you wanted to know what my systemd service file was:
Quote:
[root@fedora16-yax:/home/yaxattax/tmp]# cat /etc/systemd/system/TMW_lmgr.service
[Unit]
Description=The Mathworks FlexLM Licence Server
[Service]
ExecStart=/etc/init.d/flexlm start
ExecReload=/etc/init.d/flexlm stop
ExecReload=/etc/init.d/flexlm start
ExecStop=/etc/init.d/flexlm stop
[Install]
WantedBy=multi-user.target
WantedBy=graphical.target
[root@fedora16-yax:/home/yaxattax/tmp]#
|
---------- Post added at 04:10 PM ---------- Previous post was at 01:46 PM ----------
I found the solution:
Code:
[Unit]
Description=The Mathworks FlexLM Licence Server
[Service]
RemainAfterExit=yes
ExecStart=/etc/init.d/flexlm start
ExecReload=/etc/init.d/flexlm stop
ExecReload=/etc/init.d/flexlm start
ExecStop=/etc/init.d/flexlm stop
[Install]
WantedBy=multi-user.target
WantedBy=graphical.target
The difference is the following line:
Code:
RemainAfterExit=yes
I found another option:
But that seemed to cause my service to throw an error