mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 10:26:14 +00:00
This commit introduces the `bird3` package to OpenWrt's routing feed. The package is primarily based on the existing `bird2` package, with minor modifications to accommodate the updates and changes in BIRD 3.0.0. I have also added myself as the maintainer for this package. BIRD 3.0.0 is a major release that brings multithreading support, enabling better performance for protocols like BGP, BMP, RPKI, and others. The internal rework has introduced significant changes to the table and channel implementations, while protocol-level functionality remains largely consistent with BIRD 2.16. Although there are minor breaking changes in configuration and CLI, most existing setups should be reusable. Memory usage has increased in this version, with improvements planned for subsequent releases. Migration documentation is available in `doc/migration-bird3.md` from the official BIRD repository. For more details, see the official announcement: https://trubka.network.cz/pipermail/bird-users/2024-December/017973.html Signed-off-by: Nick Hainke <vincent@systemli.org> (cherry picked from commit 5998119c5530fbd4ab844edee3c4da0ea4fec924)
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
|
|
}
|