/srv/irclogs.ubuntu.com/2014/03/21/#upstart.txt

=== marco-traveling is now known as marcoceppi
=== gena_ is now known as gena2x
gena2xMy 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:45
gena2xBetter 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:47
gena2xoh, nevermind, problem were that app retuned code !=0 on exit13:50
xnoxgena2x: in $ man 5 init14:22
xnoxgena2x: you can read about "normal exit" stanza14:22
xnoxgena2x: where you can specify "normal" exit return cores and signals.14:23
xnoxgena2x: normal exit 0 1 TERM SIGHUP14:23
xnoxgena2x: 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:23
xnoxgena2x: this will result in job not getting respawned.14:24
gena2xxnox, thank you, i already understood that i made mistake and my problem were in wrong exit code.14:24
gena2xxnox, now all fine14:25
xnoxgena2x: fair enough =)14:25
gena2xhow to get rid of "main process (pid) killed by TERM signal" in the logs?16:40
=== SpamapS is now known as Spam
=== Spam is now known as Maps
=== Maps is now known as CannedMeat
=== CannedMeat is now known as SpamapS

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!