Created
October 4, 2016 20:37
-
-
Save robinwl/99b92d29c7a212ec79da396a4452d810 to your computer and use it in GitHub Desktop.
sshuttle upstart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "sshuttle daemon" | |
author "Robin <[email protected]>" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/usr/sbin/sshuttle | |
env ARGS="-NH --syslog" | |
env TARGET="user@remotehost:port" | |
respawn | |
respawn limit 0 300 | |
pre-start script | |
test -x $DAEMON || { stop; exit 0; } | |
end script | |
exec $DAEMON $ARGS --remote=$TARGET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment