--- /etc/init.d/cman.bak	2008-10-17 11:22:22.000000000 +0200
+++ /etc/init.d/cman	2008-10-17 12:15:02.000000000 +0200
@@ -32,6 +32,9 @@
 #     default is 60 seconds
 [ -z "$CMAN_SHUTDOWN_TIMEOUT" ] && CMAN_SHUTDOWN_TIMEOUT=60
 
+# CMAN_STARTUP_QUORUM -- amount of votes required to start cman.
+[ -z "$CMAN_STARTUP_QUORUM" ] && CMAN_STARTUP_QUORUM=1
+
 # FENCED_START_TIMEOUT -- amount of time to wait for starting fenced
 #     before giving up.  If FENCED_START_TIMEOUT is positive, then we will
 #     wait FENCED_START_TIMEOUT seconds before giving up and failing when
@@ -93,6 +96,14 @@
 	    errmsg=$( /usr/sbin/cman_tool -t $CMAN_QUORUM_TIMEOUT \
 		    -q wait 2>&1 ) || return 1
 	fi
+	nodes_count=$( /usr/sbin/cman_tool status \
+	    | awk '/^Total votes:/ {print $3}' ) || return 1
+	if [ $nodes_count -lt $CMAN_STARTUP_QUORUM ]
+	then
+	    errmsg=$( /usr/sbin/cman_tool -t $CMAN_SHUTDOWN_TIMEOUT \
+		-w leave $1 2>&1 )
+	    return 1
+	fi
     fi
     return 0
 }
