[pve-devel] applied: [PATCH container] fix #2778: use vm_start instead of systemctl to start/restart container
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jun 18 17:11:25 CEST 2020
Am 6/18/20 um 4:42 PM schrieb Oguz Bektas:
> when a backup task in 'stop' mode is executed, VZDump calls 'start_vm'
> sub instead of 'PVE::LXC::vm_start'.
>
> 'start_vm' however does not follow our regular process but instead uses
> systemctl to start the container, which results in the guest hookscripts
> not being executed in 'pre-start' and 'post-start'.
>
> to call the hooks correctly we can just make use of the
> PVE::LXC::vm_start routine which already handles them.
>
> Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
> ---
> src/PVE/VZDump/LXC.pm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
applied, thanks!
More information about the pve-devel
mailing list