]> git.proxmox.com Git - qemu-server.git/commit
add pre- start/stop hookscripts to VMs
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 31 Jan 2019 13:33:39 +0000 (14:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 1 Feb 2019 11:58:37 +0000 (12:58 +0100)
commit9e784b11542b5a7c70084b418e90f730779fb97c
tree446f472e9cdf6ec223b6aadd628bf9db1d404591
parent5442d14e6d809b52fe6cb674a4af73915064c3df
add pre- start/stop hookscripts to VMs

this adds a new config option for it, and executes it on four
points in time:

'pre-start'
'post-start'
'pre-stop'
'post-stop'

on pre-start we abort if the script fails
and pre-stop will not be called if the vm crashes or if
the vm gets powered off from inside the guest

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