Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Configuring Packages and Their Services
Writing the Package Control Script
Chapter 6 201
# 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 passed 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]=""
The use of XFS is allowed and would be defined in the FS_TYPE field. Any
options would be defined in the FS_MOUNT_OPT field.
The above excerpt from the control script shows the assignment of values
to a set of variables. The remainder of the script uses these variables to
control the package by executing Logical Volume Manager commands,