]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
service: warn if a service fails to write its PID file
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 22 Sep 2011 11:10:32 +0000 (13:10 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 22 Sep 2011 11:18:52 +0000 (13:18 +0200)
commit5375410bb2ed11a6a9e37063c0a551a7bf75338f
tree798885107ea0a396236d63217f593d8f4805f54a
parent0cdad5c0521fe87c4eef33a817f628bf3a9872c6
service: warn if a service fails to write its PID file

Warn if a service promises to write a PID file (using 'PIDFile=' in the
unit file or '# pidfile:' in SysV header), but fails to keep the
promise.

This warning will likely trigger also for the forking services with a
racy daemonization, which exit the original process before the PID file
is written.
src/service.c