Re: [exim] Question on daemon-light PID file creation during…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Phil Pennock
Data:  
Para: Fiedler Roman
CC: exim-users@exim.org
Assunto: Re: [exim] Question on daemon-light PID file creation during first install with IPv6 disable (4.76-3ubuntu3.2)
On 2013-04-25 at 12:44 +0000, Fiedler Roman wrote:
> Question: Should Exim daemon create the PID-file as soon as it starts
> running, so that it could be terminated using the PID information or
> should the PID-file creation be postponed until the daemon is fully
> functional, i.e. bound to all interfaces?


I'm a firm believer in the latter approach, so that code which starts a
daemon can wait for it to be usable by waiting for the pid to exist.

Now, there's an argument that perhaps the parent process should not exit
until the pidfile exists, and should propagate SIGINT ... there might be
arguments, but such a feature request, perhaps tied to a new
command-line flag, seems reasonable to me.

-Phil