[pve-devel] [PATCH v3 frr 6/8] d/rules: delay restart on upgrade

Alexandre Derumier aderumier at odiso.com
Tue Oct 16 05:46:43 CEST 2018


---
 debian/rules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 811d45b..ab9c4c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -193,11 +193,14 @@ override_dh_auto_install:
 	sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/*.la
 	sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/frr/modules/*.la
 
+override_dh_install_init:
+	dh_installinit --restart-after-upgrade
+
 override_dh_systemd_start:
 	dh_systemd_start frr.service
 
 override_dh_systemd_enable:
-	dh_systemd_enable frr.service
+	dh_systemd_enable --restart-after-upgrade frr.service
 
 # backports
 SRCPKG = frr
-- 
2.11.0




More information about the pve-devel mailing list