mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 08:30:00 +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') {
|
||||
return if PVE::LXC::check_running($vmid);
|
||||
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') {
|
||||
$default_delay = 3; # to redruce load
|
||||
return if PVE::QemuServer::check_running($vmid, 1);
|
||||
@ -1290,7 +1290,7 @@ my $create_stop_worker = sub {
|
||||
return if !PVE::LXC::check_running($vmid);
|
||||
my $timeout = defined($down_timeout) ? int($down_timeout) : 60;
|
||||
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 });
|
||||
} elsif ($type eq 'qemu') {
|
||||
return if !PVE::QemuServer::check_running($vmid, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user