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

Re: Not stopping daemons, where are we?

On Sat, Jul 05, 2008 at 01:36:43AM -0500, Peter Samuelson wrote:

> [Marvin Renich]
> > If the package does need to save state, don't enable the "quick halt"
> > option!  The maintainer definitely ought to know this.

> Why are all of you talking as though sending SIGTERM were not the
> standard way to tell a process to save its state and exit gracefully?
> It's certainly the method I would use if I were writing a program that
> needed to do things at exit time.  I thought everyone did it that way.

The question is whether anyone *waits* for the process, to make sure it's
allowed to finish saving state before reaching the end of the runlevel.  If
the process is only shut down using sendsigs, there's no guarantee that the
SIGKILL won't arrive before it's done saving state.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Reply to: