From: Russ Allbery Date: Wed, 24 Aug 2005 20:44:41 +0000 (+0000) Subject: Pass -wait to bos shutdown to make sure all of the processes have exited X-Git-Tag: debian/1.4rc1-1~15 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a75a8ba442fd67d8e7c15d502114228d7a40e019;p=packages%2Fo%2Fopenafs.git 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. --- 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; }