[pve-devel] [PATCH lxc] use --no-restart-on-upgrade for dh_systemd_start

Dietmar Maurer dietmar at proxmox.com
Thu Jan 14 16:24:45 CET 2016


> 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.

What if we do the following instead?

--- lxc.service.org     2016-01-14 16:21:11.055274920 +0100
+++ lxc.service 2016-01-14 16:21:18.935208223 +0100
@@ -8,8 +8,6 @@
 RemainAfterExit=yes
 ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-devsetup
 ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-apparmor-load
-ExecStart=/usr/lib/x86_64-linux-gnu/lxc/lxc-containers start
-ExecStop=/usr/lib/x86_64-linux-gnu/lxc/lxc-containers stop
 # Environment=BOOTUP=serial
 # Environment=CONSOLETYPE=serial
 #Delegate=yes


We have our own autostart code anyways.




More information about the pve-devel mailing list