Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created May 28, 2014 00:17
Show Gist options
  • Save yuuichi-fujioka/02fbf092bf9b58717306 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/02fbf092bf9b58717306 to your computer and use it in GitHub Desktop.
Softether VPN Bridge
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnbridge/vpnbridge
LOCK=/var/lock/subsys/vpnbridge
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment