Server Fault is a question and answer site for system and network administrators. 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 have a polipo proxy running on Ubuntu. It's set to start automatically on boot, but occasionally it just dies. What's the simplest way to have it automatically restarted whenever it exits unexpectedly?

share|improve this question

You can use init and upstart for this. For latest Ubuntu you will need to use upstart.

man inittab
man upstart
share|improve this answer
Thanks. I tried adding an upstart script, but after spending an hour on this it just wouldn't start. Typical Linux - nothing ever "just works". sigh – EMP Oct 8 '11 at 1:32
Can you paste your script into your question? This community is better at technical stuff... – Mircea Vutcovici Oct 8 '11 at 7:14
Sorry, I've given up and deleted the script in disgust.Have a +1, anyway! – EMP Oct 8 '11 at 12:52

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.