Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Configuring Packages and Their Services
Writing the Package Control Script
Chapter 6192
# arrays and is included as /bin/bash2. We will first check to see of
# the shell that invoked us (/bin/bash) will work (in case someone
# changed it, if not we will use /bin/bash2.
#
# At SG installation time we checked to make sure
# that either /bin/bash will work with this control script or
# that /bin/bash2 is installed. The SG rpm would not install unless
# one of these conditions are true. On RH7.x the default /bin/bash
# shell is version 2 and thus will work fine.
sglinux[0]=1 >/dev/null 2>&1
if [ $? -gt 0 ]; then
# not a valid shell
# will invoking /bin/bash2
exec /bin/bash2 -c "$0 $*"
exit 1
fi
. ${SGCONFFILE:=/etc/cmcluster.conf}
# UNCOMMENT the variables as you set them.
# Set PATH to reference the appropriate directories.
PATH=$SGSBIN:/bin:/sbin:/usr/bin:/usr/sbin
#
# REMOTE DATA REPLICATION DEFINITION
# Specify the remote data replication method.
# Leave the default, DATA_REP="none", if remote data replication is not used.
#
# If remote data replication is used for the package application data, set