[Ocfs2-tools-commits] smushran commits r1147 - branches/ocfs2-tools-1.0/vendor/common

svn-commits@oss.oracle.com svn-commits at oss.oracle.com
Mon Jan 23 19:43:18 CST 2006


Author: smushran
Date: 2006-01-23 19:43:17 -0600 (Mon, 23 Jan 2006)
New Revision: 1147

Modified:
   branches/ocfs2-tools-1.0/vendor/common/o2cb.init
Log:
o2cb.init checks existence of cluster.conf during online

Modified: branches/ocfs2-tools-1.0/vendor/common/o2cb.init
===================================================================
--- branches/ocfs2-tools-1.0/vendor/common/o2cb.init	2005-12-09 22:45:41 UTC (rev 1146)
+++ branches/ocfs2-tools-1.0/vendor/common/o2cb.init	2006-01-24 01:43:17 UTC (rev 1147)
@@ -17,6 +17,8 @@
 # Force LC_ALL=C
 export LC_ALL=C
 
+CLUSTERCONF=/etc/ocfs2/cluster.conf
+
 if [ -f /etc/sysconfig/o2cb ]
 then
     # Red Hat and Novell
@@ -512,6 +514,12 @@
         return
     fi
 
+    if ! [ -f ${CLUSTERCONF} ]
+    then
+	echo -n "Checking cluster configuration : "
+    	if_fail 1
+    fi
+
     echo -n "Starting cluster ${CLUSTER}: "
     OUTPUT="`o2cb_ctl -H -n "${CLUSTER}" -t cluster -a online=yes 2>&1`"
     if [ $? = 0 ]



More information about the Ocfs2-tools-commits mailing list