On Tue, 2008-01-08 at 19:48 +0100, Enrico Scholz wrote:
Till Maas <opensource(a)till.name> writes:
>> | kill(pid, SIGTERM); /* wait for timeout/sigchld */ kill(pid, SIGKILL);
>
> Imho there is some code missing, that the pid really belongs to the
> service,
no; as already written, modern initsystems use non-forking daemons where
such checks are not needed anymore.
> e.g. when the service died/crashed and the pid file still exists
pidfiles are ancient hacks not required by modern initsystems anymore.
That's just not true, for example:
http://www.initng.org/browser/initng-ifiles/trunk/initfiles/daemon/exim/l...
...maybe you mean that they support it, and _in your opinion_
application code should change to use that model ... but that's a very
different thing.
--
James Antill <james.antill(a)redhat.com>
Red Hat