1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 11:55:08 +03:00
SoftEtherVPN/debian/softether.upstart
Darik Horn 604b2b884f Create /etc/init/softether.conf for upstart.
Create a softether.upstart file in the Debian overlay for systems that use
the upstart init subsystem.  This lets the operator control the SoftEther
daemon with commands like:

	# start softether
	# stop softether
	# status softether
	# restart softether

Also modify the softether.init file to exit early if the /etc/init/softether
file is installed.  Although the dh_installinit debhelper prefers an upstart
configuration for automatic control, it will also install the sysv script.
2014-07-11 14:23:09 -04:00

26 lines
395 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)
exec /usr/sbin/vpnbridge upstart
;;
(vpnclient)
exec /usr/sbin/vpnclient upstart
;;
(vpnserver)
exec /usr/sbin/vpnserver upstart
;;
(*)
exit 0
;;
esac
end script