bird3 package upgrades - graceful restart?
Vincent Bernat
bernat at luffy.cx
Mon Jan 5 22:57:29 CET 2026
On 2026-01-05 07:39, Maria Matejka via Bird-users wrote:
> The package update does not restart BIRD by itself. One must do it
> manually or scripted themselves.
In the postinst, you have:
# Automatically added by dh_installinit/13.24.2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" =
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -z "$DPKG_ROOT" ] && [ -x "/etc/init.d/bird" ]; then
update-rc.d bird defaults >/dev/null
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
invoke-rc.d bird $_dh_action || exit 1
fi
fi
# End automatically added section
So, if there is /etc/init.d/bird, it will be restarted (through
invoke-rc.d which will invoke systemd). Maybe your system has
/usr/sbin/policy-rc.d preventing that? Or you deleted /etc/init.d/bird?
If the source is here, it confirms there is a restart after upgrade. You
should use --no-stop-on-upgrade to avoid an upgrade to restart the daemon.
I didn't try myself, so I may be wrong. 90% sure I am not ;-)
More information about the Bird-users
mailing list