[RFC] stopsignal stanza

Scott James Remnant scott at netsplit.com
Mon May 2 17:20:30 UTC 2011


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


> Hallo List,
>
>
> as slapd requires that it receives a SIGINT on user initiated stopping
> of service and will easily eat the directory-database for lunch if
> anything higher like SIGTERM or SIGKILL is used, there is currently no
> way to create a proper init conf for this daemon.
>
> To get around this situation i plan to add an "stopsignal SIGNAL" stanza
> to upstart. SIGNAL could be INT, USR1, USR2 or TERM(the default).
> I intentionally left out KILL here as it is used by upstart after the
> "kill timeout" exceeds.
>
> I'm in the middle of implementing the stanza and change the system_kill
> functions second param trom "bool force" to "int signal" and on signal
> == 0 sending SIGKILL to the process...
>
> I'll send the patches after i have tested that they work as expected...
>
> Marc
>
> Great! Looks forwards to that patch, make sure you get test coverage.

I'm going to be doing a 1.3 release soon, it'd be good to get it in there -
how long do you think it will take?


> OT:
>

Do i have to get through any legal or copyright stuff before i can
> contribute to upstart?
>
> No.

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


More information about the upstart-devel mailing list