cluster: RHEL57 - cman: allow init script to pass options to fenced
Fabio M. Di Nitto
fabbione at fedoraproject.org
Wed Aug 17 10:36:59 UTC 2011
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=103b9e866a82934db4c4443e1ca482aa66ea5b11
Commit: 103b9e866a82934db4c4443e1ca482aa66ea5b11
Parent: 1f2194c131c4dc6a12c61e7e69b79e27309aa5d1
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Fri Jul 23 16:13:31 2010 +0200
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Wed Aug 17 12:36:09 2011 +0200
cman: allow init script to pass options to fenced
Use FENCED_OPTS to pass startup options to fenced
Resolves: rhbz#731306
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
cman/init.d/cman | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/cman/init.d/cman b/cman/init.d/cman
index b59216a..2ed83a5 100755
--- a/cman/init.d/cman
+++ b/cman/init.d/cman
@@ -55,6 +55,9 @@
# to join the fence domain (equivalent to "yes").
[ -z "$FENCE_JOIN" ] && FENCE_JOIN="yes"
+# FENCED_OPTS -- allow extra options to be passed to fence daemon.
+[ -z "$FENCED_OPTS" ] && FENCED_OPTS=""
+
# NETWORK_BRIDGE_SCRIPT -- script to use for xen network bridging.
# This script must exist in the /etc/xen/scripts directory.
# The default script is "network-bridge".
@@ -163,7 +166,7 @@ start_daemons()
status fenced &> /dev/null
if [ $? -ne 0 ]; then
- errmsg=$( /sbin/fenced 2>&1 ) || return 1
+ errmsg=$( /sbin/fenced "$FENCED_OPTS" 2>&1 ) || return 1
fi
status dlm_controld &> /dev/null
More information about the cluster-commits
mailing list