]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
fix #2043: vm start: always stop existing systemd scopes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Feb 2019 08:40:17 +0000 (09:40 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Feb 2019 07:12:32 +0000 (08:12 +0100)
commitf5c673cba768bd8d67fb4f44dd9f8a15e1287ef0
tree8fff327645c45813639422686b313e8a531a9b5d
parent24466eb53d8d227c977788dd40f14fea2898a4c9
fix #2043: vm start: always stop existing systemd scopes

commit 3c23aa808ccc946bad92d9bc63b6f833c61d0f52 tried to fix a issue
where after a stop mode backup a scope could still linger around, but
it actually removed the wrong check. If we want to remove a
lingering, not yet cleaned up, scope we need to check if said scope
exists not if a VM process is still running. While they are corelated
the scope will always get cleaned up _after_ it's processes are gone.

Should fix #2043, but as this is seemingly not that easy to fix one
for all I'll put the should as disclaimer here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer.pm