]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Pass -wait to bos shutdown to make sure all of the processes have exited
authorRuss Allbery <rra@debian.org>
Wed, 24 Aug 2005 20:44:41 +0000 (20:44 +0000)
committerRuss Allbery <rra@debian.org>
Wed, 24 Aug 2005 20:44:41 +0000 (20:44 +0000)
before moving on.  Otherwise, a file server that's slow to shut down
causes the bos delete call to fail.

debian/afs-newcell

index 417f2ba3755e92b4ab4b65d3628e49a256fe27c4..1c9d7a809b65d71ea4cf57b1d7fdb57baad03cab 100644 (file)
@@ -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;
 }