From a75a8ba442fd67d8e7c15d502114228d7a40e019 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 24 Aug 2005 20:44:41 +0000 Subject: [PATCH] Pass -wait to bos shutdown to make sure all of the processes have exited before moving on. Otherwise, a file server that's slow to shut down causes the bos delete call to fail. --- debian/afs-newcell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/afs-newcell b/debian/afs-newcell index 417f2ba37..1c9d7a809 100644 --- a/debian/afs-newcell +++ b/debian/afs-newcell @@ -223,7 +223,7 @@ print "done.\n"; # 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 @@ -258,6 +258,6 @@ print "Then, run afs-rootvol.\n"; # 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; } -- 2.39.5