Upstart scripts

Posted by The Journeyman geek on Super User See other posts from Super User or by The Journeyman geek
Published on 2010-02-26T12:31:06Z Indexed on 2010/03/15 7:10 UTC
Read the original article Hit count: 882

Filed under:
|

I'm planning on setting up a server using ubuntu lucid lynx, which uses upstart.I'm not finding the docs too intuitive, so i'd like to ask a solution for my specific problem.

I'm currently using a script to start up my IPV6 tunnel with free6/gogo6 - right now its a simple script invoking a single command, and its configuration file

 #! /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

  1. start this app on startup, functionally identical to the script i have
  2. restart this script as 'root' should the app fail
  3. enable me to restart the tunnel should anything go wrong.

© Super User or respective owner

Related posts about ubuntu-10.04

Related posts about upstart