Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 58225673a97ab16a684b7cd0c52f5aef > files > 18

heartbeat-2.0.8-5mdv2008.1.x86_64.rpm

#!/bin/sh
#
# $Id: AudibleAlarm.in,v 1.7 2006/08/14 09:37:21 andrew Exp $
#
# Description:	wrapper of OCF RA AudibleAlarm, based on original heartbeat RA.
#		See OCF RA AudibleAlarm for more information.
#
# Author:	Xun Sun <xunsun@cn.ibm.com> 
# Support:      linux-ha@lists.linux-ha.org
# License:      GNU General Public License (GPL)
# Copyright:	(C) 2005 International Business Machines

# Source function library.
. /etc/ha.d/resource.d//hto-mapfuncs

usage() {
	echo "Usage: $0 [node1 node2 ... ] $LEGAL_ACTIONS"
}

if [ $# = 0 ]; then
   usage
fi

# Get operation name, which is the last argument we are passed.
for arg in "$@"; do
    op=$arg
done

nodelist=`echo $* | sed 's%'$op'$%%'`

OCF_TYPE=AudibleAlarm
OCF_RESOURCE_INSTANCE=AudibleAlarm
export OCF_TYPE OCF_RESOURCE_INSTANCE

OCF_RESKEY_nodelist=$nodelist; export OCF_RESKEY_nodelist 
ra_execocf $op