=== marco-traveling is now known as marcoceppi | ||
=== gena_ is now known as gena2x | ||
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:45 |
---|---|---|
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:47 |
gena2x | oh, nevermind, problem were that app retuned code !=0 on exit | 13:50 |
xnox | gena2x: in $ man 5 init | 14:22 |
xnox | gena2x: you can read about "normal exit" stanza | 14:22 |
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:23 |
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:24 |
gena2x | xnox, now all fine | 14:25 |
xnox | gena2x: fair enough =) | 14:25 |
gena2x | how 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!