Skip to content

Commit

Permalink
Update vpn-server.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysonvelagio authored Jun 19, 2018
1 parent b94384b commit 483c9a7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Centos/vpn-server.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable Softether by daemon.
### END INIT INFO
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
TAP_ADDR=192.168.7.1

test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
sleep 1
/sbin/ifconfig tap_soft $TAP_ADDR
;;
stop)
$DAEMON stop
Expand All @@ -28,8 +17,6 @@ restart)
$DAEMON stop
sleep 3
$DAEMON start
sleep 1
/sbin/ifconfig tap_soft $TAP_ADDR
;;
*)
echo "Usage: $0 {start|stop|restart}"
Expand Down

0 comments on commit 483c9a7

Please sign in to comment.