[PC-BSD Commits] r16443 - pcbsd/current/src-sh/warden/scripts/rc.d

svn at pcbsd.org svn at pcbsd.org
Tue Apr 17 08:57:46 PDT 2012


Author: kris
Date: 2012-04-17 15:57:46 +0000 (Tue, 17 Apr 2012)
New Revision: 16443

Modified:
   pcbsd/current/src-sh/warden/scripts/rc.d/shutdown.sh
Log:

Only shutdown warden managed jails



Modified: pcbsd/current/src-sh/warden/scripts/rc.d/shutdown.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/rc.d/shutdown.sh	2012-04-17 15:55:28 UTC (rev 16442)
+++ pcbsd/current/src-sh/warden/scripts/rc.d/shutdown.sh	2012-04-17 15:57:46 UTC (rev 16443)
@@ -22,6 +22,8 @@
 cd ${JDIR}
 for i in `ls -d *`
 do
+  if [ ! -d "${i}/etc/warden" ] ; then continue; fi
+
   ${PROGDIR}/scripts/backend/checkstatus.sh "${i}" 2>/dev/null
   if [ "$?" = "0" ]
   then



More information about the Commits mailing list