Offline entry point for FileOnOff

When the agent's offline entry point is called by the agent, the entry point expects the name of the resource as the first argument, followed by the values of the remaining ArgList attributes.

The below mentioned example is applicable for agent version V50 and later.

#!/bin/sh
# FileOnOff Offline script
# Expects ResourceName and Pathname
#
. "${CLUSTER_HOME}bin/ag_i18n_inc.sh"
RESNAME=$1
VCSAG_SET_ENVS $RESNAME
#check if second attribute provided
if [ -z "$4" ]
then
   VCSAG_LOG_MSG "W" "The value for PathName is not specified"\
   1020
else
#remove the file
   /bin/rm Df $4
fi
exit 0;