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?
Asked
Active
Viewed 945 times
2 Answers
2
You can use init
and upstart
for this. For latest Ubuntu you will need to use upstart.
man inittab
man upstart

Mircea Vutcovici
- 17,619
- 4
- 56
- 83
-
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 08 '11 at 01:32
-
Can you paste your script into your question? This community is better at technical stuff... – Mircea Vutcovici Oct 08 '11 at 07:14
-
Sorry, I've given up and deleted the script in disgust.Have a +1, anyway! – EMP Oct 08 '11 at 12:52