Init : someone could comment this ?

James Antill james.antill at redhat.com
Tue Jan 8 20:38:10 UTC 2008


On Tue, 2008-01-08 at 19:48 +0100, Enrico Scholz wrote:
> Till Maas <opensource at 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/listener.ii

...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 at redhat.com>
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080108/51d8ab0a/attachment.sig>


More information about the fedora-devel-list mailing list