Advertisement
tomearp

SoftEther VPN Server startup script

Nov 20th, 2013
6,483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/sh
  2. # chkconfig: 2345 99 01
  3. # description: SoftEther VPN Server
  4. DAEMON=/usr/local/vpnserver/vpnserver
  5. LOCK=/var/lock/vpnserver
  6. test -x $DAEMON || exit 0
  7. case "$1" in
  8. start)
  9. $DAEMON start
  10. touch $LOCK
  11. ;;
  12. stop)
  13. $DAEMON stop
  14. rm $LOCK
  15. ;;
  16. restart)
  17. $DAEMON stop
  18. sleep 3
  19. $DAEMON start
  20. ;;
  21. *)
  22. echo "Usage: $0 {start|stop|restart}"
  23. exit 1
  24. esac
  25. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement