1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 03:45:08 +03:00
SoftEtherVPN/debian/softether.upstart
Darik Horn 61d215e1c8 Update init files for softetherd.
The check for an upstart configuration in the sysv script is reverted because
upstart and start-stop-daemon can both control the same softetherd instance.
2014-07-11 14:23:09 -04:00

18 lines
316 B
Plaintext

description "SoftEther VPN"
start on started networking
stop on stoppping networking
respawn
expect stop
script
test -f /etc/default/softether && . /etc/default/softether
case $SOFTETHER_MODE in
(vpnbridge|vpnclient|vpnserver)
exec /usr/sbin/softetherd "$SOFTETHER_MODE" ;;
(*)
exit 0 ;;
esac
end script