I'm planning on setting up a server using Ubuntu Lucid Lynx, which uses upstart. I'm not finding the documentation too intuitive, so I'd like to ask for a solution for my specific problem.
#! /bin/sh /usr/local/gw6c/bin/gw6c -f /usr/local/gw6c/bin/gw6c.conf
Of course, when this goes down, it tends to be silent, and so I'd need to get in and restart it.
I'd like to set up an upstart script which will
- start this application on startup, functionally identical to the script I have
- restart this script as 'root' should the application fail
- enable me to restart the tunnel should anything go wrong.