Menu

#41 Making systemd unit aligned with systemd's ideology

2.10.3
open
nobody
systemd (1)
5
2018-04-03
2018-04-03
No

The included systemd service file is sub-optimal (and look like a quick-n-dirty translation of the corresponding SysV init script). The attached patch makes systemd unit file more in line with systemd ideology.

The patch removes the Type=forking directive since the best way to run a service under systemd is to give systemd a way to control the process. The patch also removes the PIDFile= directive since the pid file is not required under systemd controlled process (systemd knows the pid already). Finally, the patch adds "-f" to the ExecStart= directive to ensure that the process can be managed by systemd.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.