Setting up an HP SIM server 5.x on a Linux-based Serviceguard Cluster 444847-003, March 2009

15
# * Note: This file MUST be edited before it can be used.
*
# *
*
# * You must have bash version 2 installed for this script to work
*
#
* properly. Also required is the arping utility available in the
*
# * iputils package.
*
# *
*
#
*************************************
*********************************
# The environment variables PACKAGE, NODE, SG_PACKAGE,
# SG_NODE and SG_SCRIPT_LOG_FILE are set by Serviceguard
# at the time the control script is executed.
# Do not set these environment variables yourself!
# The pack
age may fail to start or halt if the values for
# these environment variables are altered.
# NOTE: Starting from 11.17, all environment variables set by
# Serviceguard implicitly at the time the control script is
# executed will contain the prefix "SG_".
Do not set any variable
# with the defined prefix, or the control script may not
# function as it should.
# Test to see if the shell is POSIX compliant. On RH6.2 /bin/bash
(which
# is the default shell, ie. /bin/sh is sym linked to it) is version
# 1.x a
nd does not support some of the features that this control
# script uses (specifically arrays). Bash version 2.x does support
# 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 s
omeone
# 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 conditi
ons 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
. ${SGCONFFIL
E:=/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
# GFS
# This package control script provides support for the Red Hat GFS
# (Global File Sy
stem). The use of GFS is mutually exclusive of other
# filesystems. That is if used GFS is the only filesystem that can