Proper upstart script for hamachi?
- by ALQ
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