containers should be started and stopped manually by PVE, not automatically by systemd. this fixes an issue with containers being stopped early during the shutdown process, and getting restarted by the HA manager.
Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com> --- src/Makefile | 1 + src/pve-manual-start-stop.conf | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/pve-manual-start-stop.conf diff --git a/src/Makefile b/src/Makefile index 19931e5..64dc25d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -42,6 +42,7 @@ install: pct lxc-pve.conf lxc-pve-prestart-hook lxc-pve-autodev-hook lxc-pve-pos install -m 0755 lxc-pve-reboot-trigger ${LXC_SCRIPT_DIR} install -d -m0755 ${SERVICEDIR}/lxc@.service.d install -m0644 pve-reboot.conf ${SERVICEDIR}/lxc@.service.d/ + install -m0644 pve-manual-start-stop.conf ${SERVICEDIR}/lxc@.service.d/ install -d ${LXC_HOOK_DIR} install -m 0755 lxc-pve-prestart-hook ${LXC_HOOK_DIR} install -m 0755 lxc-pve-autodev-hook ${LXC_HOOK_DIR} diff --git a/src/pve-manual-start-stop.conf b/src/pve-manual-start-stop.conf new file mode 100644 index 0000000..84d9850 --- /dev/null +++ b/src/pve-manual-start-stop.conf @@ -0,0 +1,5 @@ +[Unit] +DefaultDependencies=No + +[Install] +WantedBy= -- 2.14.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel