[Ocfs2-tools-commits] jlbec commits r1386 -
branches/cman-based/vendor/common
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Aug 15 16:07:14 PDT 2007
Author: jlbec
Date: 2007-08-15 16:07:13 -0700 (Wed, 15 Aug 2007)
New Revision: 1386
Modified:
branches/cman-based/vendor/common/o2cb.init.sh
Log:
Show the status of the cman daemons in "status"
Modified: branches/cman-based/vendor/common/o2cb.init.sh
===================================================================
--- branches/cman-based/vendor/common/o2cb.init.sh 2007-08-15 22:56:10 UTC (rev 1385)
+++ branches/cman-based/vendor/common/o2cb.init.sh 2007-08-15 23:07:13 UTC (rev 1386)
@@ -1024,6 +1024,23 @@
status_heartbeat
}
+status_cman()
+{
+ FOUND=0
+
+ echo -n "Checking for daemons: "
+ for d in o2cb_controld ocfs2_controld
+ do
+ if [ -n "$(pidofproc "/sbin/${d}")" ]
+ then
+ FOUND=1
+ echo -n "${d} "
+ fi
+ done
+ [ "$FOUND" = 0 ] && echo -n "not running"
+ echo
+}
+
online_o2cb()
{
if [ "$#" -lt "1" -o -z "$1" ]
@@ -1389,6 +1406,8 @@
return 1;
fi
+ [ "$O2CB_STACK" = "cman" -a "$CMAN_SUPPORTED" = "yes" ] && status_cman
+
echo -n "Checking O2CB cluster $CLUSTER: "
check_online $CLUSTER
if [ $? = 2 ]
More information about the Ocfs2-tools-commits
mailing list