]> git.pld-linux.org Git - packages/bird.git/commitdiff
f4a34447966afcff33b447ef719fa869 bird-1.0.4.tar.gz
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 18 Nov 2000 22:09:24 +0000 (22:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
fd523b8048cd6e09d476c007db1b0681  bird-doc-1.0.4.tar.gz

Changed files:
    bird.init -> 1.1

bird.init [new file with mode: 0644]

diff --git a/bird.init b/bird.init
new file mode 100644 (file)
index 0000000..14bd867
--- /dev/null
+++ b/bird.init
@@ -0,0 +1,66 @@
+#!/bin/sh
+#
+# bird         Starts the Dynamic Route Daemon 
+#
+# chkconfig:   345 80 45
+#
+# description: Dynamic Route Daemon for IPv4 and IPv6 routers
+#
+# processname: bird
+# config:      /etc/bird.conf
+
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/sysconfig/bird ] && . /etc/sysconfig/zebra
+
+# Check that networking is up.
+if is_no "${NETWORKING}"; then
+       msg_Network_Down bird
+       exit 1
+fi
+
+# Sanity checks.
+[ -f /etc/bird.conf ] || exit 0
+
+
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the services are already running?
+       if [ ! -f /var/lock/subsys/bird ]; then
+               msg_starting "bird"
+               daemon ${SERVICE_RUN_NICE_LEVEL} bird -d 
+               touch /var/lock/subsys/bird
+       else
+               msg_Already_Running "bird"
+       fi
+       ;;
+  stop)
+        # Stop daemons.
+       if [ -f /var/lock/subsys/bird ]; then
+               msg_stopping "bird"
+               killproc bird
+               rm -f /var/lock/subsys/bird
+       else
+               msg_Not_Running "bird"
+       fi
+       ;;
+  status)
+       status bird
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       msg_Usage "$0 {start|stop|status|restart|reload}"
+       exit 1
+esac
+
+exit 0
This page took 0.08073 seconds and 4 git commands to generate.