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