mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-02-03 13:47:15 +03: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,7 +5385,11 @@ sub _do_vm_stop {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($force) {
|
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";
|
warn "VM quit/powerdown failed - terminating now with SIGTERM\n";
|
||||||
kill 15, $pid;
|
kill 15, $pid;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user