I set up a Python application as a Linux service using Upstart script. I want to stop the service when sys.exit is called inside the python code due to some exception being caught. As it turns out, sys.exit did terminate the current process, but somehow the service keeps getting respawned. If I run status [service] again and again, it would
Tag: upstart
Upstart stop if running
I have a Jenkins job to stop a node application, deploy code, and start the application. The start/stop is done with an Upstart script. I use initctl stop node-App If the job is running, this works great. But if the app has died or is in a stopped state, the output is initctl: Unknown instance: This causes the Jenkins job