| #!/bin/sh # chkconfig: 2345 99 01
 # description: PacketiX VPN Bridge 4.0
 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
 
 |