3 # config: /etc/quagga/ripngd.conf
7 # Short-Description: RIP routing engine for IPv6
8 # Description: RIP routing engine for use with Zebra and IPv6
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/ripngd
24 CONF_FILE=/etc/quagga/ripngd.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 $RIPNGD_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}"