Forwarding some accidentally private conversation
-------- Original Message --------
Subject: Re: daemontools-run: Should stop services at shutdown
Date: Fri, 6 Nov 2009 20:54:45 +0300
From: Konstantin Khomoutov <flatworm.DeleteThis@users.sourceforge.net>
Organization: Service 007
http://007spb.ru
To: Matthew Gabeler-Lee <cheetah.DeleteThis@fastcat.org>
On Fri, 06 Nov 2009 12:16:45 -0500
Matthew Gabeler-Lee <cheetah.DeleteThis@fastcat.org> wrote:
> > [...]
> >> daemontools-run should install a script in /etc/init.d that runs in
> >> runlevels 0 and 6 to shutdown everything in /etc/service/.
> >
> > I think it should suffice to just remove runlevel 6 from the
> > inittab entry for svscanboot: according to init manual, when
> > changing runlevel, it sends TERM following by KILL to all
> > processes, defined in inittab, which are undefined on that
> > new runlevel. As runlevel 6 means reboot, init will send TERM
> > to the running copy of svscanboot, which is then supposed
> > to clean up the daemons it supervises.
>
> I don't think svscanboot works that way, unfortunately. It's just a
> tiny shell script, and sending it SIGTERM doesn't seem to do anything to
> the subprocesses (svscan, readproctitle) that it launches. Looking at
> my inittab, I in fact did remove it from levels 0, 1, and 6, and that
> didn't fix the problem for me.
Unfortunately, my first message missed cc to 536546.DeleteThis@bugs.debian.org,
so could you please send your comment there also so it won't get lost?
I now wonder what was the idea of the original daemontools author --
does he suppose systems never get stopped or rebooted?
In fact I like the idea of daemontools, but if there's no clean way
to bring the supervisor down, the whole point of it is worthless.
--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org