Pre-start and stop

Ted Gould ted at ubuntu.com
Tue Jan 7 03:32:33 UTC 2014


Hello,

It seems like most of the examples in the Cookbook recommend that if you
want to stop a job in the pre-start stanza, you should call "stop" which
will handle stopping the job for you.  But, it seems looking at the
Upstart code I can just as easily return a negative return value to
cause the job to stop:

http://bazaar.launchpad.net/~upstart-devel/upstart/trunk/view/head:/init/job.c#L417

Is there a reason I should call "stop" over just returning a negative
value?

Thanks,
Ted

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140106/25589d5b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140106/25589d5b/attachment.pgp>


More information about the upstart-devel mailing list