public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - cman init: make groupd check more robust
@ 2009-04-28 18:34 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-04-28 18:34 UTC (permalink / raw)
  To: cluster-cvs-relay

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()


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-28 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 18:34 cluster: STABLE3 - cman init: make groupd check more robust Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).