On 01/11/2016 03:48 PM, Reindl Harald wrote: > Am 11.01.2016 um 15:37 schrieb Michal Schmidt: >> On 01/11/2016 02:58 PM, Reindl Harald wrote: >>> *nothing* needs a PID file path because systemd knows the main-PID >>> since it's a supervisor >> >> systemd cannot always guess which PID is the main PID of the service, >> so with Type=forking it's good to use PIDFile= > > every service in the last years which logged warnings about PIDFile > while working fine was fixed here by remove that line Good for you. > the main PID is the PID after the double-fork Some programs exit() the original process immediately after the first fork(). Then it's possible for systemd to observe the first child and assume it is the main PID. That's bad because that process is going to go away after forking the second time. Michal -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx