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 Mon, 17 Jan 2011 21:54:18 +0100
Lennart Poettering <mzerqung@xxxxxxxxxxx> wrote:

> On Mon, 17.01.11 14:31, Petr Pisar (ppisar@xxxxxxxxxx) wrote:
> 
> > 
> > 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.
> 
> Yes, that's what happens in systemd. However we currently use SIGKILL
> after a timeout, if the normal kill signal (SIGTERM usually) didn't
> work. I have now added to my TODO list to make this SIGKILL step
> optional.

SIGKILLing databases and similar stuff is not a good idea indeed, they
may be committing data to disk, and you don't want to corrupt data if
it can be helped.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-- 
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