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: make groupd check more robust


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=eab924426b6cdd84cb1ac3d2d976d56437c0b3e3
Commit:        eab924426b6cdd84cb1ac3d2d976d56437c0b3e3
Parent:        c05898ee8365a6a0046ff7eb2497d4a94ebbab80
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Apr 28 20:33:57 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Apr 28 20:33:57 2009 +0200

cman init: make groupd check more robust

avoid stupid errors on startup

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

diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 3ba6c15..38c3fbb 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -321,9 +321,8 @@ groupd_enabled()
 	groupd_compat="$(ccs_tool query /cluster/group/@groupd_compat \
 			2>/dev/null || true)"
 
-	if [ -z "$groupd_compat" ] || [ $groupd_compat == 0 ]; then
-		return 1
-	fi
+	[ -z "$groupd_compat" ] && return 1
+	[ "$groupd_compat" == 0 ] && return 1
 }
 
 cmannotifyd_enabled()


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