Otherise the lxc.service is restarted when upgrading the
package causing all containers to be stopped.

Note that this affects the 'prerm' portion of the package so
upgrading from an older package to this one still performs
the old version's stop action.
---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 893ed6d..236a1f4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,4 +36,5 @@ override_dh_install:
 
        dh_install --fail-missing
 
-
+override_dh_systemd_start:
+       dh_systemd_start --no-restart-on-upgrade
-- 
2.1.4


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to