2 # chkconfig: 2345 17 83
5 # Provides: watchquagga
6 # Short-Description: Quagga watchdog
7 # Description: Quagga watchdog for use with Zebra
10 # source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
16 # quagga command line options
17 . /etc/sysconfig/quagga
22 LOCK_FILE=/var/lock/subsys/watchquagga
26 # Check that networking is up.
27 [ "${NETWORKING}" = "no" ] && exit 1
29 # Check that there are daemons to be monitored.
30 [ -z "$WATCH_DAEMONS" ] && exit 1
32 echo -n $"Starting $PROG: "
33 daemon $cmd -d $WATCH_OPTS $WATCH_DAEMONS
35 [ $RETVAL -eq 0 ] && touch $LOCK_FILE
39 echo -n $"Shutting down $PROG: "
42 [ $RETVAL -eq 0 ] && rm -f $LOCK_FILE
45 restart|reload|force-reload)
50 condrestart|try-restart)
51 if [ -f $LOCK_FILE ]; then
62 echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"