bird: Update to 1.3.11 and fix build issues
[feed/routing.git] / bird / files / bird4.init
index 8ac5e759137440cb64e1c514756658aa50e838e9..18243bb9238fc3d5b2879ae6bfa57beb64e04d24 100644 (file)
@@ -1,21 +1,24 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2010-2011 OpenWrt.org
 
-START=50
+START=99
+STOP=10
 
 SERVICE_DAEMONIZE=1
 SERVICE_WRITE_PID=1
 
+BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
+
 start() {
-       service_start /usr/sbin/bird4 -d
+       service_start $BIRD -d
 #      ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird4loop )
 }
 
 stop() {
 #      ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird4loop )
-       service_stop /usr/sbin/bird4
+       service_stop $BIRD
 }
 
 reload() {
-       service_reload /usr/sbin/bird4
+       service_reload $BIRD
 }