Proper upstart script for hamachi?

Posted by ALQ on Server Fault See other posts from Server Fault or by ALQ
Published on 2011-01-05T17:53:00Z Indexed on 2011/01/05 17:55 UTC
Read the original article Hit count: 290

Filed under:
|
|
|
|

I've been looking for a script to supervise hamachi and mostly got it to work except for the part that daemonizes hamachid. The following script works but is not perfect.

I'm not familiar with upstart internals to debug this further.

description "Hamachi VPN"
author      "Alexis Le-Quoc <[email protected]>"

start on (net-device-up
          and local-filesystems
          and runlevel [2345])
stop on runlevel [016]

respawn 
oom never

env DAEMON=/opt/logmein-hamachi/bin/hamachid

pre-start script
    [ -x "$DAEMON" ]
end script

# should really be:
# expect daemon
# exec $DAEMON
exec $DAEMON debug > /dev/null

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu