cluster: STABLE3 - cman init: check for cman_tool before executing the script

Fabio M. Di Nitto fabbione at fedoraproject.org
Mon Jan 11 14:51:06 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=c8dba498c41ebb5c88ad4ee955febaad69007198
Commit:        c8dba498c41ebb5c88ad4ee955febaad69007198
Parent:        75d28b69c5e47f48149efba985609161782bd31c
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Mon Jan 11 15:48:35 2010 +0100
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Mon Jan 11 15:48:35 2010 +0100

cman init: check for cman_tool before executing the script

Original patch from Guido Gunther.

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

diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index bb917e6..3572381 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -19,6 +19,8 @@
 # set secure PATH
 PATH="/bin:/usr/bin:/sbin:/usr/sbin:@SBINDIR@"
 
+[ -x @SBINDIR@/cman_tool ] || exit 0
+
 local_chkconfig()
 {
 	case "$1" in


More information about the cluster-commits mailing list