3 # config: /etc/quagga/zebra.conf
7 # Short-Description: GNU Zebra routing manager
8 # Description: GNU Zebra routing manager
11 # source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
17 # quagga command line options
18 . /etc/sysconfig/quagga
23 LOCK_FILE=/var/lock/subsys/zebra
24 CONF_FILE=/etc/quagga/zebra.conf
28 # Check that networking is up.
29 [ "${NETWORKING}" = "no" ] && exit 1
31 # The process must be configured first.
32 [ -f $CONF_FILE ] || exit 6
33 if [ `id -u` -ne 0 ]; then
34 echo $"Insufficient privilege" 1>&2
38 echo -n $"Starting $PROG: "
39 /sbin/ip route flush proto zebra
40 daemon $cmd -d $ZEBRA_OPTS -f $CONF_FILE
42 [ $RETVAL -eq 0 ] && touch $LOCK_FILE
46 echo -n $"Shutting down $PROG: "
49 [ $RETVAL -eq 0 ] && rm -f $LOCK_FILE
52 restart|reload|force-reload)
57 condrestart|try-restart)
58 if [ -f $LOCK_FILE ]; then
69 echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"