| # Short-Description: Quagga watchdog |
| # Description: Quagga watchdog for use with Zebra |
| # source function library |
| . /etc/rc.d/init.d/functions |
| # quagga command line options |
| LOCK_FILE=/var/lock/subsys/watchquagga |
| # Check that networking is up. |
| [ "${NETWORKING}" = "no" ] && exit 1 |
| # Check that there are daemons to be monitored. |
| [ -z "$WATCH_DAEMONS" ] && exit 1 |
| echo -n $"Starting $PROG: " |
| daemon $cmd -d $WATCH_OPTS $WATCH_DAEMONS |
| [ $RETVAL -eq 0 ] && touch $LOCK_FILE |
| echo -n $"Shutting down $PROG: " |
| [ $RETVAL -eq 0 ] && rm -f $LOCK_FILE |
| restart|reload|force-reload) |
| if [ -f $LOCK_FILE ]; then |
| echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}" |