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: 957
        
ubuntu-10.04
|upstart
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
- start this app on startup, functionally identical to the script i have
 - restart this script as 'root' should the app fail
 - enable me to restart the tunnel should anything go wrong.
 
© Super User or respective owner