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?
You can use
upstart for this. For latest Ubuntu you will need to use upstart.
man inittab man upstart