mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 01:27:31 +04:00
BIRD is an internet routing daemon with support of modern routing protocols (BGP, OSPF, RIP, Babel) for IPv4 and IPv6. This is the 3.x branch, a multithreaded rewrite. Moved from the openwrt/routing feed, as discussed in https://github.com/openwrt/routing/issues/184. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
26 lines
519 B
Bash
26 lines
519 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2010-2017 OpenWrt.org
|
|
|
|
USE_PROCD=1
|
|
START=70
|
|
STOP=10
|
|
|
|
BIRD_BIN="/usr/sbin/bird"
|
|
BIRD_CONF="/etc/bird.conf"
|
|
BIRD_PID_FILE="/var/run/bird.pid"
|
|
|
|
start_service() {
|
|
mkdir -p /var/run
|
|
procd_open_instance
|
|
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
|
|
}
|