Moving pid files from /var/run/$name.pid to /var/run/$name/$name.pid
Colin Walters
walters at verbum.org
Fri Aug 24 14:32:59 UTC 2012
On Fri, 2012-08-24 at 10:31 -0400, Colin Walters wrote:
> On Fri, 2012-08-24 at 13:58 +0100, Andrew Price wrote:
>
> > If Type=forking is set and PIDFile is unset, systemd will try to guess
> > the PID of the main daemon process. I'm not sure what the guessing
> > strategy is but specifying the PIDFile explicitly is probably safer,
> > particularly for daemons which spawn >1 processes.
>
> Or you switch to non-forking, which is just plain better. We discussed
> this recently on the SELinux list:
[blah, hit control-return accidentally]
http://marc.info/?l=selinux&m=133287147315517&w=2
There's docs in systemd.service and elsewhere on the internets too.
More information about the devel
mailing list