1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-16 12:14:10 +02:00

[bird] Improve init files.

This commit is contained in:
Álvaro Fernández Rojas 2014-01-17 20:24:45 +01:00
parent 0c1529eee2
commit 8731e0647a
2 changed files with 14 additions and 8 deletions

View File

@ -1,22 +1,25 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2014 OpenWrt.org
BIRD="bird4"
START=99
STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
BIRD_BIN="/usr/sbin/$BIRD"
BIRD_CONF="/etc/$BIRD.conf"
start() {
service_start $BIRD -d
service_start $BIRD_BIN -d -c $BIRD_CONF
}
stop() {
service_stop $BIRD
service_stop $BIRD_BIN
}
reload() {
service_reload $BIRD
service_reload $BIRD_BIN
}

View File

@ -1,22 +1,25 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2014 OpenWrt.org
BIRD="bird6"
START=99
STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
BIRD="/usr/sbin/bird6 -c /etc/bird6.conf"
BIRD_BIN="/usr/sbin/$BIRD"
BIRD_CONF="/etc/$BIRD.conf"
start() {
service_start $BIRD -d
service_start $BIRD_BIN -d -c $BIRD_CONF
}
stop() {
service_stop $BIRD
service_stop $BIRD_BIN
}
reload() {
service_reload $BIRD
service_reload $BIRD_BIN
}