| # description: A BGPv4, BGPv4+, BGPv4- routing engine for use with Zebra |
| # config: /etc/zebra/bgpd.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/bgpd.conf ] || exit 0 |
| echo -n $"Starting $prog: " |
| daemon /usr/sbin/bgpd -d $BGPD_OPTS |
| [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bgpd |
| echo -n $"Shutting down $prog: " |
| [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/bgpd |
| if [ -f /var/lock/subsys/bgpd ]; then |
| echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}" |