mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-11 11:05:45 +00:00
convert system_powerdown and stop nocheck monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
816e2c4a53
commit
988903cab5
@ -3009,9 +3009,10 @@ sub vm_stop {
|
|||||||
|
|
||||||
eval {
|
eval {
|
||||||
if ($shutdown) {
|
if ($shutdown) {
|
||||||
vm_monitor_command($vmid, "system_powerdown", $nocheck);
|
$nocheck ? vm_mon_cmd_nocheck($vmid, "system_powerdown") : vm_mon_cmd($vmid, "system_powerdown");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
vm_monitor_command($vmid, "quit", $nocheck);
|
$nocheck ? vm_mon_cmd_nocheck($vmid, "quit") : vm_mon_cmd($vmid, "quit");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
my $err = $@;
|
my $err = $@;
|
||||||
|
Loading…
Reference in New Issue
Block a user