From 6cf7e97abe05ee8943f8a2d300e1c46038b95df1 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 24 Aug 2000 20:08:00 +0000 Subject: Added files for RPM building. --- misc/bird.init | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 misc/bird.init (limited to 'misc/bird.init') diff --git a/misc/bird.init b/misc/bird.init new file mode 100755 index 00000000..b3c3c995 --- /dev/null +++ b/misc/bird.init @@ -0,0 +1,66 @@ +#! /bin/sh +# +# bird.init Starts the Internet Routing Daemon. +# +# Author: Ondrej Feela Filip, +# +# chkconfig: - 32 75 +# description: Internet routing daemon supporting IPv4 routing protocols: +# BGP4, RIPv2 and OSPFv2. +# +# processname: bird +# config: /etc/bird.conf + + +# Source function library. +. /etc/rc.d/init.d/functions + +# Check that networking is up. +if [ ${NETWORKING} = "no" ] +then + exit 0 +fi + +[ -f /etc/bird.conf ] || exit 0 + +[ -f /usr/sbin/bird ] || exit 0 + +RETVAL=0 + +# See how we were called. +case "$1" in + start) + echo -n "Starting BIRD: " + daemon bird + RETVAL=$? + + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird + ;; + stop) + echo -n "Stopping BIRD: " + killproc bird + RETVAL=$? + + echo + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/bird + ;; + status) + status bird + RETVAL=$? + ;; + restart) + $0 stop + $0 start + RETVAL=$? + ;; + reload) + killall -HUP bird + RETVAL=$? + ;; + *) + echo "Usage: bird.init {start|stop|status|restart|reload}" + exit 1 +esac + +exit $REVAL -- cgit v1.2.3