fix #949: add post-restart hook to vzdump
This commit is contained in:
parent
8887b0fde9
commit
09720205ba
@ -903,6 +903,7 @@ sub exec_backup_task {
|
||||
$cleanup->{resume} = 0;
|
||||
$self->run_hook_script('pre-restart', $task, $logfd);
|
||||
$plugin->resume_vm($task, $vmid);
|
||||
$self->run_hook_script('post-restart', $task, $logfd);
|
||||
my $delay = time () - $vmstoptime;
|
||||
debugmsg('info', "vm is online again after $delay seconds", $logfd);
|
||||
}
|
||||
@ -934,6 +935,8 @@ sub exec_backup_task {
|
||||
debugmsg ('info', "vm is online again after $delay seconds", $logfd);
|
||||
}
|
||||
|
||||
$self->run_hook_script ('post-restart', $task, $logfd);
|
||||
|
||||
} else {
|
||||
die "internal error - unknown mode '$mode'\n";
|
||||
}
|
||||
@ -1010,7 +1013,8 @@ sub exec_backup_task {
|
||||
debugmsg ('info', "restarting vm", $logfd);
|
||||
$plugin->start_vm ($task, $vmid);
|
||||
}
|
||||
}
|
||||
}
|
||||
$self->run_hook_script ('post-restart', $task, $logfd);
|
||||
};
|
||||
my $err = $@;
|
||||
if ($err) {
|
||||
|
2
debian/changelog.Debian
vendored
2
debian/changelog.Debian
vendored
@ -8,6 +8,8 @@ pve-manager (4.1-34) unstable; urgency=medium
|
||||
|
||||
* add enableKeyEvents to combogrid
|
||||
|
||||
* fix #949: add post-restart hook to vzdump
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Fri, 22 Apr 2016 09:15:07 +0200
|
||||
|
||||
pve-manager (4.1-33) unstable; urgency=medium
|
||||
|
@ -25,7 +25,8 @@ if ($phase eq 'job-start' ||
|
||||
$phase eq 'backup-abort' ||
|
||||
$phase eq 'log-end' ||
|
||||
$phase eq 'pre-stop' ||
|
||||
$phase eq 'pre-restart') {
|
||||
$phase eq 'pre-restart' ||
|
||||
$phase eq 'post-restart') {
|
||||
|
||||
my $mode = shift; # stop/suspend/snapshot
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user