[pve-devel] [PATCH] lxc-stop fails when 'kill' and 'timeout' options are used together

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 2 14:54:07 CEST 2015


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/API2/LXC/Status.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm
index 14a4415..a641430 100644
--- a/src/PVE/API2/LXC/Status.pm
+++ b/src/PVE/API2/LXC/Status.pm
@@ -312,9 +312,8 @@ __PACKAGE__->register_method({
 		$err = undef;
 		warn "shutdown failed - forcing stop now\n";
 
-		push @$cmd, '--kill';
+		my $cmd = ['lxc-stop', '-n', $vmid, '--kill'];
 		run_command($cmd);
-		
 	    }
 
 	    die $err if !$err;
-- 
2.1.4




More information about the pve-devel mailing list