Comment 4 for bug 1031035

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I see that you check if the transmission job is enabled within the the script.
Based on the upstart cookbook, it is more correct to:
* check conditions in pre-start script
* call `stop` which will prevent the current job from starting
* exit 0

See:
http://upstart.ubuntu.com/cookbook/#stop-a-job-from-running-if-its-configuration-file-has-not-been-created-modified