| # config: /etc/quagga/zebra.conf |
| # Short-Description: GNU Zebra routing manager |
| # Description: GNU Zebra routing manager |
| # source function library |
| . /etc/rc.d/init.d/functions |
| # quagga command line options |
| LOCK_FILE=/var/lock/subsys/zebra |
| CONF_FILE=/etc/quagga/zebra.conf |
| # Check that networking is up. |
| [ "${NETWORKING}" = "no" ] && exit 1 |
| # The process must be configured first. |
| [ -f $CONF_FILE ] || exit 6 |
| if [ `id -u` -ne 0 ]; then |
| echo $"Insufficient privilege" 1>&2 |
| echo -n $"Starting $PROG: " |
| /sbin/ip route flush proto zebra |
| daemon $cmd -d $ZEBRA_OPTS -f $CONF_FILE |
| [ $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}" |