3 # config: /etc/quagga/ripd.conf
7 # Short-Description: RIP routing engine
8 # Description: RIP routing engine for use with Zebra
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/ripd
24 CONF_FILE=/etc/quagga/ripd.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 daemon $cmd -d $RIPD_OPTS -f $CONF_FILE
41 [ $RETVAL -eq 0 ] && touch $LOCK_FILE
45 echo -n $"Shutting down $PROG: "
48 [ $RETVAL -eq 0 ] && rm -f $LOCK_FILE
51 restart|reload|force-reload)
56 condrestart|try-restart)
57 if [ -f $LOCK_FILE ]; then
68 echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"