upstart proposal on "kill signal/timeout" stanzas
Clint Byrum
clint at ubuntu.com
Tue May 14 19:01:55 UTC 2013
On 2013-05-14 10:58, Thomas Perschak wrote:
> I am complaining about the confusing terminology.
Ahh thank you for clarifying.
> "kill signal" specifies the signal send for termination while "kill
> timeout" has nothing to do with termination - it is about killing.
>
> Example:
> kill signal SIGxxx
> kill timeout 120
>
> Looking at the example one thinks that SIGxxx is send after 120
> seconds - which is wrong - it is send automatically after 5 seconds.
>
> So I thought it more logic if "kill signal" was renamed to "term
> signal", in addition there should be a "term timeout".
> The "kill timeout" should stay as it is.
>
> Example:
> term signal SIGxxx
> term timeout 30
> kill timeout 120
The "kill signal" is not sent 5 seconds later, but immediately after
progressing past the stop/pre-stop state. This is the way upstart
signals to the process that it should exit now. There would be no reason
to delay that signal at all.
I'd be more inclined to change 'kill signal' to this:
stop signal SIGxxx
And deprecate the usage of 'kill signal'. That would in fact be more
clear.
More information about the upstart-devel
mailing list