]> git.proxmox.com Git - pve-container.git/commitdiff
lxc-start does not close all FDs, so we cannot use run_command
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 2 Jun 2015 05:16:03 +0000 (07:16 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 2 Jun 2015 05:16:03 +0000 (07:16 +0200)
simply use system() as workaround

src/PVE/API2/LXC.pm

index 4a2e32927ef27fa72ece2fb8ae89cf3fd6cebe3d..32527b07f2c8966930c6b7ef4a903ab3c7c8c90d 100644 (file)
@@ -931,9 +931,11 @@ __PACKAGE__->register_method({
                    PVE::Storage::activate_storage($stcfg, $sid);
                }
 
-               my $cmd = ['lxc-start', '-n', $vmid];
+               # lxc-start does not close all FDs, so we cannot 
+               # use run_command
+               # run_command(['lxc-start', '-n', $vmid]);
 
-               run_command($cmd);
+               system("lxc-start -n $vmid");
 
                return;
            };