[pve-devel] [PATCH frr 07/10] d/rules: delay restart on upgrade

Alexandre Derumier aderumier at odiso.com
Fri Jun 15 03:39:44 CEST 2018


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

diff --git a/debian/rules b/debian/rules
index 8b264fc..6048579 100755
--- a/debian/rules
+++ b/debian/rules
@@ -196,11 +196,14 @@ endif
 	# Remove development files
 	rm 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