mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 09:07:19 +00:00
Fix package path to startup and shutdown subroutines
This commit is contained in:
parent
c2b121c038
commit
1b5e56f283
@ -1240,7 +1240,7 @@ __PACKAGE__->register_method ({
|
|||||||
if ($d->{type} eq 'lxc') {
|
if ($d->{type} eq 'lxc') {
|
||||||
return if PVE::LXC::check_running($vmid);
|
return if PVE::LXC::check_running($vmid);
|
||||||
print STDERR "Starting CT $vmid\n";
|
print STDERR "Starting CT $vmid\n";
|
||||||
$upid = PVE::API2::LXC->vm_start({node => $nodename, vmid => $vmid });
|
$upid = PVE::API2::LXC::Status->vm_start({node => $nodename, vmid => $vmid });
|
||||||
} elsif ($d->{type} eq 'qemu') {
|
} elsif ($d->{type} eq 'qemu') {
|
||||||
$default_delay = 3; # to redruce load
|
$default_delay = 3; # to redruce load
|
||||||
return if PVE::QemuServer::check_running($vmid, 1);
|
return if PVE::QemuServer::check_running($vmid, 1);
|
||||||
@ -1290,7 +1290,7 @@ my $create_stop_worker = sub {
|
|||||||
return if !PVE::LXC::check_running($vmid);
|
return if !PVE::LXC::check_running($vmid);
|
||||||
my $timeout = defined($down_timeout) ? int($down_timeout) : 60;
|
my $timeout = defined($down_timeout) ? int($down_timeout) : 60;
|
||||||
print STDERR "Stopping CT $vmid (timeout = $timeout seconds)\n";
|
print STDERR "Stopping CT $vmid (timeout = $timeout seconds)\n";
|
||||||
$upid = PVE::API2::LXC->vm_shutdown({node => $nodename, vmid => $vmid,
|
$upid = PVE::API2::LXC::Status->vm_shutdown({node => $nodename, vmid => $vmid,
|
||||||
timeout => $timeout, forceStop => 1 });
|
timeout => $timeout, forceStop => 1 });
|
||||||
} elsif ($type eq 'qemu') {
|
} elsif ($type eq 'qemu') {
|
||||||
return if !PVE::QemuServer::check_running($vmid, 1);
|
return if !PVE::QemuServer::check_running($vmid, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user