3 # chkconfig: 2345 17 83
4 # description: A Quagga watchdog for use with Zebra
6 # processname: watchquagga
8 # source function library
9 .
/etc
/rc.d
/init.d
/functions
12 .
/etc
/sysconfig
/network
14 # quagga command line options
15 .
/etc
/sysconfig
/quagga
17 # Check that networking is up.
18 [ "${NETWORKING}" = "no" ] && exit 0
20 # Check that there are daemons to be monitored.
21 [ -z "$WATCH_DAEMONS" ] && exit 0
28 echo -n $
"Starting $prog: "
29 daemon
/usr
/sbin
/watchquagga
-d $WATCH_OPTS $WATCH_DAEMONS
31 [ $RETVAL -eq 0 ] && touch /var
/lock
/subsys
/watchquagga
35 echo -n $
"Shutting down $prog: "
38 [ $RETVAL -eq 0 ] && rm -f /var
/lock
/subsys
/watchquagga
47 if [ -f /var
/lock
/subsys
/watchquagga
]; then
58 echo $
"Usage: $0 {start|stop|restart|reload|condrestart|status}"