Closed gwillem closed 11 years ago
Actually, this is a bug -- upstart_ensure should only start when the script is not running, but not stop in any case.
this is fixed, can you close the bug ?
FWIW, I've moved over to https://github.com/ansible/ansible which is more actively maintained.
Thanks Sebastien for creating and sharing your code! I've learned some Python from it ;)
Is that on purpose? Besides that, on my Ubuntu 12.10, the upstart scripts never set run.fail, whatever the outcome.
$ service mysql status; echo $? mysql start/running, process 9170 0 $ service mysql stop; echo $? mysql stop/waiting 0 $ service mysql status; echo $? mysql stop/waiting 0 $ service mysql start; echo $? mysql start/running, process 9323 0 $ service mysql start; echo $? start: Job is already running: mysql 1
So, a better strategy seems to be to just run "service start" and let the upstart scripts do the logic.