mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-06-28 03:45:08 +03:00
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.
18 lines
316 B
Plaintext
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
|