Re: daemontools feature request: user signals

"Gerrit Pape" <[email protected]> Tue, 31 Dec 2002 14:18:49 +0100
Newsgroups gmane.org.djb.miscellaneous
Message-ID <[email protected]>
On Thu, Dec 26, 2002 at 10:49:54PM -0600, David Phillips wrote:
> USR1 and USR2 are commonly used by daemons and are meant to be
> delivered to the daemon by the user.  Other signals are not.  Being
> that they are user defined signals, having them handled by daemontools
> makes sense.

> Peter van Dijk writes:
> > A short glance at the code suggests that all you need to do is
> > expand a switch-statement in supervise.c, and modify svc.c to accept
> > the characters you're feeding it, and ofcourse update the help
> > message.
> 
> Sure, but then I have to patch daemontools on every system I use it
> on.  That seriously takes away from the cross platform compatibility
> benefit.

You could replace svscan, supervise, readproctitle with the runsvdir,
runsv programs from the runit package.  The runsv program supports
sending USR1, USR2 signals to a service; there are some more differences
which in my opinion are helpful.

Regards, Gerrit.