]> git.proxmox.com Git - pve-container.git/commit
fix #2200: vm_stop: add nokill-after-timeout parameter
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 May 2019 07:07:22 +0000 (07:07 +0000)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 May 2019 09:47:45 +0000 (09:47 +0000)
commite0e298180fc5ee9305a783b0505c92a6ad76fa88
tree0ed8a45f8c61fdbe9b9828effad3d8555f8bd008
parent8d41edef47155c4493f9058eea7f970462c0907c
fix #2200: vm_stop: add nokill-after-timeout parameter

This allows to have the same semantics as qemu-server:
* immediate hard-kill
* shutdown with kill after timeout
* shutdown without kill after timeout

And thus we finally can move the vm_shutdown API call to a correct
semantic, i.e., do not immediate hard kill if forceStop is not passed
but rather see it as stop after timeout knob.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/LXC/Status.pm
src/PVE/LXC.pm