api: add reboot api call master
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 11 Sep 2019 12:07:45 +0000 (14:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Sep 2019 12:13:35 +0000 (14:13 +0200)
commit165411f0c2ad08471b1313ece8000bb13ece693a
treeabbd38bc9f5d3b4f90b48c5d496395cc98a24e99
parent575d19dab5fca8757dc3621a3621c04f4d2ffc77
api: add reboot api call

this creates a reboot request file (inspired by pve-container)
and relies on the 'qm cleanup' call by the qmeventd to detect
and restart the vm afterwards

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Qemu.pm
PVE/CLI/qm.pm
PVE/QemuServer.pm