initscript: Do I have to wait for a service to stop?

Petr Pisar ppisar at redhat.com
Mon Jan 17 14:31:41 UTC 2011


On 2011-01-17, Richard W.M. Jones <rjones at redhat.com> wrote:
>
> Now when you send a signal to the watchdog daemon, it can take several
> seconds to shut down.

I hope systemd and similar inits running daemons on foreground solve
this problem simply by waiting for the child's PID.

> So I don't know how to fix that one.  Any suggestions?
>
I met this problem in `dibbler' code (http://klub.com.pl/dhcpv6/). I solved
it by ptracing the daemon, sending signal, and waiting for the daemond
exit using ptrace.

-- Petr



More information about the devel mailing list