#!/bin/sh
#
#
# Description:	wrapper of OCF RA Xinetd, based on original heartbeat RA.
#		See OCF RA Xinetd 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.
. @HB_RA_DIR@/hto-mapfuncs

xup_usage () {
    echo "Usage: $0 <xinetd-service-name> $LEGAL_ACTIONS"
    exit 1
}

if [ $# -ne 2 ]; then
    xup_usage
fi 

OCF_TYPE=Xinetd
OCF_RESOURCE_INSTANCE=${OCF_TYPE}
export OCF_TYPE OCF_RESOURCE_INSTANCE

OCF_RESKEY_service=$1; export OCF_RESKEY_service
ra_execocf $2
