mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-24 02:04:10 +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;
|
||||
}
|
||||
} 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";
|
||||
kill 15, $pid;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user