[bird] Use pid file support introduced in v1.3.12.
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 17 Jan 2014 19:29:15 +0000 (20:29 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 17 Jan 2014 19:29:15 +0000 (20:29 +0100)
bird/files/bird4.init
bird/files/bird6.init

index 80bc516..a1a1be2 100644 (file)
@@ -7,13 +7,14 @@ START=99
 STOP=10
 
 SERVICE_DAEMONIZE=1
-SERVICE_WRITE_PID=1
+SERVICE_USE_PID=1
+SERVICE_PID_FILE="/var/run/$BIRD.pid"
 
 BIRD_BIN="/usr/sbin/$BIRD"
 BIRD_CONF="/etc/$BIRD.conf"
 
 start() {
-       service_start $BIRD_BIN -d -c $BIRD_CONF
+       service_start $BIRD_BIN -d -c $BIRD_CONF -P $SERVICE_PID_FILE
 }
 
 stop() {
index 2b39e3f..6156fb2 100644 (file)
@@ -7,13 +7,14 @@ START=99
 STOP=10
 
 SERVICE_DAEMONIZE=1
-SERVICE_WRITE_PID=1
+SERVICE_USE_PID=1
+SERVICE_PID_FILE="/var/run/$BIRD.pid"
 
 BIRD_BIN="/usr/sbin/$BIRD"
 BIRD_CONF="/etc/$BIRD.conf"
 
 start() {
-       service_start $BIRD_BIN -d -c $BIRD_CONF
+       service_start $BIRD_BIN -d -c $BIRD_CONF -P $SERVICE_PID_FILE
 }
 
 stop() {