Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Upstart on Ubuntu 12.04 to control and monitor a service defined by me, where the service is a user process running as a daemon. I need to monitor it so, when it fails/crashes it respawns, if it needs to start another processes the upstart scripts do it on the fly with the available stanzas. Until there so far, I hace managed it to work, but now I need to reboot system if the desired process, if tried to respawn "n" number of times and failed, cannot start again.

How can I accomplish this? Can I do it using Upstart as well or maybe I need to include another kind of script or daemon?

Any help will be appreciated. PD.- By the way, can I change how many respawns will Upstart waits till reboot?

share|improve this question
up vote 0 down vote accepted

OK, because lack of a better answer I'm using just the shutdown -r command. I understand it's a bad practice, that's why I thought Upstart had another way to do this but , in view of my boss asking me to achieve this, I'll just reboot system if respawning the process fails several times.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.