mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-04 15:18:49 +00:00
_do_vm_stop: only warn if QMP command failed but VM is actually stopped
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0433e98f23
commit
d60cbb97ec
@ -5385,6 +5385,10 @@ sub _do_vm_stop {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (!check_running($vmid, $nocheck)) {
|
||||
warn "Unexpected: VM shutdown command failed, but VM not running anymore..\n";
|
||||
return;
|
||||
}
|
||||
if ($force) {
|
||||
warn "VM quit/powerdown failed - terminating now with SIGTERM\n";
|
||||
kill 15, $pid;
|
||||
|
Loading…
Reference in New Issue
Block a user