Skip to content

Instantly share code, notes, and snippets.

@glidenote
Created June 17, 2013 09:55
Show Gist options
  • Save glidenote/5795856 to your computer and use it in GitHub Desktop.
Save glidenote/5795856 to your computer and use it in GitHub Desktop.
#!/bin/sh
# chkconfig: 2345 99 01
# description: UT-VPN Server
DAEMON=/usr/bin/utvpnserver
LOCK=/var/lock/subsys/utvpnserver
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