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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2011-01-17, Richard W.M. Jones <rjones@xxxxxxxxxx> 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

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux