`/etc/init.d/bird restart` or `/etc/init.d/bird reload` has no effects.
This PR fixes this issue by:
- running the service in the foreground to meet the requirements of procd
- sending SIGHUP signal to reload the service
PKG_NAME:=bird2
PKG_VERSION:=2.0.7
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird
start_service() {
mkdir -p /var/run
procd_open_instance
- procd_set_param command $BIRD_BIN -c $BIRD_CONF -P $BIRD_PID_FILE
+ procd_set_param command $BIRD_BIN -f -c $BIRD_CONF -P $BIRD_PID_FILE
procd_set_param file "$BIRD_CONF"
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn
procd_close_instance
}
+
+reload_service() {
+ procd_send_signal bird
+}