[13:45] <gena2x> My job stops during pre-stop script and can't handle signal anymore. Is it possible to tell the upstart that job is already stopped and there is no need to send a signal?
[13:47] <gena2x> Better to say - 'any way to handle this situation without errors'. I.e. tell upstart that it doesn't need to produce any errors in case if process exit during the pre-stop.
[13:50] <gena2x> oh, nevermind, problem were that app retuned code !=0 on exit
[14:22] <xnox> gena2x: in $ man 5 init
[14:22] <xnox> gena2x: you can read about "normal exit" stanza
[14:23] <xnox> gena2x: where you can specify "normal" exit return cores and signals.
[14:23] <xnox> gena2x: normal exit 0 1 TERM SIGHUP
[14:23] <xnox> gena2x: e.g. such that it's considered "normal" for the process to finish with exit codes "0" "1" and signals "SIGTERM" and "SIGHUP" (signals can be specified with or without SIG prefix)
[14:24] <xnox> gena2x: this will result in job not getting respawned.
[14:24] <gena2x> xnox, thank you, i already understood that i made mistake and my problem were in wrong exit code.
[14:25] <gena2x> xnox, now all fine
[14:25] <xnox> gena2x: fair enough =)
[16:40] <gena2x> how to get rid of "main process (pid) killed by TERM signal" in the logs?