2 # Start/Stop script for l7vsd
4 # chkconfig: 2345 95 34
5 # description: Start and stop l7vsd
9 # Author: Shinya TAKEBAYASHI
10 # Released: October 2007
11 # Licence: GNU General Public Licence
13 # Source function library.
14 #. /etc/rc.d/init.d/functions
16 [ -f /usr/sbin/l7vsd ] || exit 0
19 DAEMON="/usr/sbin/l7vsd"
20 SOCKFILE=/var/run/l7vs/l7vs
24 if [ -a $SOCKFILE ]; then
25 echo "$PROG is already running."
28 echo -n $"Starting $PROG: "
29 start-stop-daemon --start --quiet --nicelevel +19 --exec $DAEMON
37 echo -n $"Stopping $PROG: "
38 start-stop-daemon --stop --quiet --exec $DAEMON
41 if [ $RETVAL -eq 0 ]; then
51 if [ $RETVAL != 0 ]; then
52 echo "l7vsd is not running."
54 echo "l7vsd is running with pid: $PID"
77 if test "x`pidof l7vsd`" != x; then
84 echo $"Usage: $0 {start|stop|restart|condrestart|status}"