From d1252b84255a12cdf7a488fd4b922a4f1b3ac40f Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 31 Jul 2012 16:04:33 +0200 Subject: [PATCH] lxc-destroy: wait until the container is stopped Signed-off-by: Timothy Chen Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- src/lxc/lxc-destroy.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc-destroy.in b/src/lxc/lxc-destroy.in index 76cad8637..aa9473bec 100644 --- a/src/lxc/lxc-destroy.in +++ b/src/lxc/lxc-destroy.in @@ -99,6 +99,7 @@ lxc-info -n $lxc_name 2>/dev/null | grep -q RUNNING if [ $? -eq 0 ]; then if [ $force -eq 1 ]; then lxc-stop -n $lxc_name + lxc-wait -n $lxc_name -s STOPPED else echo "$(basename $0): '$lxc_name' is running; aborted" >&2 exit 1