]> git.proxmox.com Git - qemu-server.git/commit
wait for vm scopes to be gone
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 19 Jun 2019 07:21:22 +0000 (09:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Jun 2019 08:11:38 +0000 (10:11 +0200)
commit4f8cfa190abe85c9db0199743668024b09a3727b
tree0db1854ccb20d1e349a978c3d9ca51afa1a22533
parent71fc647ff981c01803e6b6b2f42447dbdeee6ac5
wait for vm scopes to be gone

This should help with the rare case where stop mode backups
fail to restart due to the $vmid.scope not being completely
gone when we want to restart. This queries systemd via dbus,
and if the scope is still there, awaits a UnitRemoved signal
for the scope from dbus.

For now with a 5 second timeout... (given that the processes
are already gone and it's really just waiting for systemd to
wake up, this should be plenty...)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer.pm