[RFC] stopsignal stanza

Scott James Remnant scott at netsplit.com
Mon May 2 18:33:43 UTC 2011


On Mon, May 2, 2011 at 11:31 AM, Marc - A. Dahlhaus <mad at wol.de> wrote:

> Am 02.05.2011 19:58, schrieb Scott James Remnant:
> --8<--
> >     Talked about the topic with SpamapS on irc and he suggested that we
> >     choos another stanza for it as there is a bug open for sending
> another
> >     signal than HUP on reload...
> >
> >     Maybe we better use "signal {stop,reload} SIGNAL" for it?!
> >
> > I would prefer:
> >
> >   kill signal HUP
> >
> > since that goes better with timeout, etc. There should already be the
> > code to translate signal names (normal exit uses it)
>
> Nice. For the messages that now mention "sending TERM signal", we need a
> intval to signalname translation, is there one in nih?
>
> Yup, in nih/signal.h - nih_signal_to_name


> >
> >     Then we could also rename the system_kill function to
> system_signal_send
> >     and reuse it for the reloading also...
>
> That renaming ok for you?
>
> system_send_signal () is less yoda ;-)

Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20110502/599be11c/attachment.html>


More information about the upstart-devel mailing list