<div dir="ltr">Hi Michael,<div class="gmail_extra"><br><div class="gmail_quote">2014-03-04 19:26 GMT+00:00 Michael Barrett <span dir="ltr"><<a href="mailto:loki77@gmail.com" target="_blank">loki77@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Is there anyway to tell the difference between these different 'stopped' situations:<div>
- The daemon was stopped by a user command (service <daemon> stop)</div></div></blockquote><div>$UPSTART_EVENTS will not be set in this scenario (since no event caused the job to stop - an admin intervened).</div><div>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>- The daemon died, but is has not reached the respawn limit and is restarting.</div>
</div></blockquote><div> In this scenario, $PROCESS will be set to the name of the job process that failed (for example 'pre-start', 'main').</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div>- The daemon died and is not going to attempt to respawn due to whatever reason (no respawn, or reaching the respawn limit)</div></div></blockquote><div> In this scenario, if the respawn stanzas was specified, $PROCESS will be set to 'respawn' to denote that the respawn limit was reached.</div>
<div><br></div><div>If the respawn stanza was not specified, $PROCESS will not be set. However, in both scenarios upstart will set $EXIT_STATUS or $EXIT_SIGNAL (whichever is appropriate).</div><div><br></div><div>See stopped(7) and init(5) for further details.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks!<span class=""><font color="#888888"><br clear="all">
<div><br></div>-- <br>Michael Barrett
</font></span></div></div>
<br>--<br>
upstart-devel mailing list<br>
<a href="mailto:upstart-devel@lists.ubuntu.com">upstart-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/upstart-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/upstart-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Kind regards,<br><br>James.<br>--<br>James Hunt<br>____________________________________<br>#upstart on freenode<br><a href="http://upstart.ubuntu.com/cookbook" target="_blank">http://upstart.ubuntu.com/cookbook</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/upstart-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/upstart-devel</a><br></div>
</div></div>