[OmniOS-discuss] Got a larval fix for you, Bob!

Dan McDonald danmcd at omniti.com
Mon Apr 3 21:58:54 UTC 2017


I would like you to go into your zones, and patch THEIR version of /usr/sbin/shutdown thusly:

--- /usr/sbin/shutdown  Fri Apr 22 16:36:43 2016
+++ /zones/lipkg0/root/usr/sbin/shutdown        Mon Apr  3 17:54:24 2017
@@ -228,7 +228,9 @@
 
 if [ "$pid1" ] || [ "$pid2" ]
 then
-       /usr/bin/kill $pid1 $pid2 > /dev/null 2>&1
+# XXX KEBE SAYS TRY SOMETHING DIFFERENT...
+       /usr/bin/pwait $pid1 $pid2
+#      /usr/bin/kill $pid1 $pid2 > /dev/null 2>&1
 fi
 
 /sbin/init ${initstate}


I believe the shutdown script is forking procs that don't finish until AFTER zoneadmd starts to shut things down.  This causes the problems you see.

The global version of shutdown should not be modified for now (esp. if this doesn't work for you, you can use it to recover).

Thanks,
Dan



More information about the OmniOS-discuss mailing list