This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: STABLE3 - cman init: change groupd startup check


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=69dd1942d6d443003e6a66be5e9f5cb5bccce0e7
Commit:        69dd1942d6d443003e6a66be5e9f5cb5bccce0e7
Parent:        defd0bc9a1df7b0cfeb2e16a67e89bcb71e2a3ae
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Mon Apr 20 10:42:57 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon Apr 20 10:42:57 2009 +0200

cman init: change groupd startup check

update groupd_enabled check to reflect new defaults.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 cman/init.d/cman.in |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 9206a92..49df088 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -304,8 +304,10 @@ qdiskd_enabled()
 
 groupd_enabled()
 {
-	if [ "$(ccs_tool query /cluster/group/@groupd_compat 2>/dev/null || \
-		true)" == "0" ]; then
+	groupd_compat="$(ccs_tool query /cluster/group/@groupd_compat \
+			2>/dev/null || true)"
+
+	if [ -z "$groupd_compat" ] || [ $groupd_compat == 0 ]; then
 		return 1
 	fi
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]