before moving on. Otherwise, a file server that's slow to shut down
causes the bos delete call to fail.
# Past this point we want to control when bos shutdown happens.
$shutdown_needed = 0;
-unwind("bos shutdown $server -localauth");
+unwind("bos shutdown $server -localauth -wait");
run("vos create $server a root.afs -localauth");
# We should now be able to bring up the client (it may need root.afs to exist
# If we fail before all the instances are created, we need to back out of
# everything we did as much as possible.
END {
- system("bos shutdown $server -localauth") if $shutdown_needed;
+ system("bos shutdown $server -localauth -wait") if $shutdown_needed;
run(pop @unwinds) while @unwinds;
}