All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] cman: allow init script to pass options to fenced
@ 2011-08-16  5:50 Fabio M. Di Nitto
  2011-08-16 14:59 ` Lon Hohberger
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio M. Di Nitto @ 2011-08-16  5:50 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Use FENCED_OPTS to pass startup options to fenced

Resolves: rhbz#730639

Signed-off-by: Fabio M. Di Nitto <fdinitto@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
-- 
1.7.4.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Cluster-devel] [PATCH] cman: allow init script to pass options to fenced
  2011-08-16  5:50 [Cluster-devel] [PATCH] cman: allow init script to pass options to fenced Fabio M. Di Nitto
@ 2011-08-16 14:59 ` Lon Hohberger
  0 siblings, 0 replies; 2+ messages in thread
From: Lon Hohberger @ 2011-08-16 14:59 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On Tue, Aug 16, 2011 at 07:50:53AM +0200, Fabio M. Di Nitto wrote:
> Use FENCED_OPTS to pass startup options to fenced
> 
> Resolves: rhbz#730639
> 
> Signed-off-by: Fabio M. Di Nitto <fdinitto@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

This looks fine by me.


-- 
Lon Hohberger - Red Hat, Inc.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-16 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16  5:50 [Cluster-devel] [PATCH] cman: allow init script to pass options to fenced Fabio M. Di Nitto
2011-08-16 14:59 ` Lon Hohberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.