Re: how to make systemd wait for a process to die?

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

 



On Mon, 19.09.11 21:26, Juan Orti Alcaine (j.orti.alcaine@xxxxxxxxx) wrote:

> Yes, it's a poor choice for the daemon to use SIGHUP, I have found a lot of
> oddities with this program.
> 
> A collateral effect of this is that the router advertisement daemon (radvd)
> is run as a child and meanwhile gogoc is closing the tunnel, radvd is
> reloading its configuration, and then dying with SIGKILL, because it never
> receives a SIGTERM, doesn't it?

This sounds to me as if you need to set KillMode=process. The default
KillMode is "control-group" which means all processes in the cgroup get
a SIGHUP if you use this in conjunction with KillSignal=SIGHUP. However,
if you want to make sure that only the parent PID gets the SIGHUP (which
is then responsible to kill the child, too), then use KillMode=process.

> Thank you and good work with systemd, it's fantastic!

Thanks!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
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