[RFC] stopsignal stanza
Marc - A. Dahlhaus
mad at wol.de
Mon May 2 16:17:29 UTC 2011
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
OT:
Do i have to get through any legal or copyright stuff before i can
contribute to upstart?
More information about the upstart-devel
mailing list