Commit 87534686 authored by Leigh Stoller's avatar Leigh Stoller

Bug fix; forgot the call to sleep during the wait loop.

parent b6b2d0ab
......@@ -158,7 +158,7 @@ if ($status eq "running") {
if ($?) {
die("Could not halt container $ctid");
}
for (my $i = 5; $i >= 0; $i--) {
for (my $i = 10; $i >= 0; $i--) {
my $stuff = `$sudo $VZLIST -n $vnodeid -H -o status`;
if ($?) {
die("Could not get container status for $vnodeid\n");
......@@ -172,6 +172,7 @@ if ($status eq "running") {
chomp($stuff);
die("Could not parse container status: '$stuff'\n");
}
sleep(5);
}
if ($status ne "stopped") {
die("Container $ctid would not stop!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment