Setting up HP SIM 5.x on an HP-UX Serviceguard Cluster (448492-002, February 2008)

21
# (NFS), Apache Web Server, and SAMBA (CIFS) Server.
#
# If you plan to use one of the HA server toolkits to run an application server,
# you need to set the HA_APP_SERVER value to either "pre
-
IP" or "post
-
IP" in
# order to enable this contro
l script to check and run the Toolkit Interface
# Script (toolkit.sh) in the package directory. The interface script will call
# the toolkit main script to verify, start, and stop the server daemons.
#
# If you set the HA_APP_SERVER to "pre
-
IP", the applic
ation will be started
# BEFORE adding the package IP address(es) to the system. Application servers
# such as NFS and SAMBA are better to be started before the system provides
# external connections (activate package IP addresses). Therefore, at the time
#
the clients connect to the system, the application server is
# ready for service.
#
# If you set the HA_APP_SERVER to "post
-
IP", the application will be started
# AFTER adding the package IP address(es) to the system. Application servers
# such as Apache
Web Server will check the existing IP when the server starts.
# These applications will not be started if the IP has not been added to the
# system.
#
#Uncomment one the following lines as needed:
#
#HA_APP_SERVER="pre
-
IP"
HA_APP_SERVER="post
-
IP"
# SERVIC
E NAMES AND COMMANDS.
# Specify the service name, command, and restart parameters which are
# used by this package. Uncomment SERVICE_NAME[0]="", SERVICE_CMD[0]="",
# SERVICE_RESTART[0]="" and fill in the name of the first service, command,
# and restart
parameters. You must begin with SERVICE_NAME[0], SERVICE_CMD[0],
# and SERVICE_RESTART[0] and increment the list in sequence.
#
# For example:
# SERVICE_NAME[0]=cmresserviced_pkg1
# SERVICE_CMD[0]="/usr/local/cmcluster/bin/cmresserviced /
dev/md0"
# SERVICE_RESTART[0]="" # Will not restart the service.
#
# SERVICE_NAME[1]=pkg1a
# SERVICE_CMD[1]="/usr/bin/X11/xclock
-
display 192.10.25.54:0"
# SERVICE_RESTART[1]="" # Will not restart the service.
#
#
SERVICE_NAME[2]=pkg1c
# SERVICE_CMD[2]="/bin/ping 127.0.0.1"
# SERVICE_RESTART[2]="
-
R" # Will restart the service an infinite
# number of times.
#
# Note: No environmental variables will be passe
d to the command, this
# includes the PATH variable. Absolute path names are required for the
# service command definition. Default shell is /bin/sh.
#
#SERVICE_NAME[0]=""
#SERVICE_CMD[0]=""
#SERVICE_RESTART[0]=""
# Setting the log file
log_file=${SG_SC
RIPT_LOG_FILE:
-
$0.log}
# START OF CUSTOMER DEFINED FUNCTIONS
# This function is a place holder for customer define functions.
# You should define all actions you want to happen here, before the service is
# started. You can create as many functions as y
ou need.
#
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.