| # description: An OSPF v2 routing engine for use with Zebra |
| # config: /etc/quagga/ospfd.conf |
| # source function library |
| . /etc/rc.d/init.d/functions |
| # quagga command line options |
| # Check that networking is up. |
| [ "${NETWORKING}" = "no" ] && exit 0 |
| # The process must be configured first. |
| [ -f /etc/quagga/ospfd.conf ] || exit 0 |
| echo -n $"Starting $prog: " |
| daemon /usr/sbin/ospfd -d $OSPFD_OPTS |
| [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ospfd |
| echo -n $"Shutting down $prog: " |
| [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ospfd |
| if [ -f /var/lock/subsys/ospfd ]; then |
| echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}" |