From: Serge Hallyn Date: Tue, 31 Jul 2012 14:04:33 +0000 (+0200) Subject: lxc-destroy: wait until the container is stopped X-Git-Tag: lxc-0.8.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1252b84255a12cdf7a488fd4b922a4f1b3ac40f;p=thirdparty%2Flxc.git lxc-destroy: wait until the container is stopped Signed-off-by: Timothy Chen Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- 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