Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Configuring Packages and Their Services
Writing the Package Control Script
Chapter 6 191
Package Control Script Template File
The following is an excerpt from the package control script template file.
NOTE Comment out all references to
RAIDSTART
,
RAIDSTOP
, and
MD
. They are
deprecated in Serviceguard for Linux but the package control script has
not yet been updated to reflect this. Do not make any changes in the
SOFTWARE RAID DATA REPLICATION section, as this is reserved for a
possible future enhancement.
# **********************************************************************
# * *
# * HIGH AVAILABILITY PACKAGE CONTROL SCRIPT (template) *
# * *
# * 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 PACKAGE and NODE environment variables are set by
# Serviceguard at the time the control script is executed.
# Do not set these environment variables yourself!
# The package may fail to start or halt if the values for
# these environment variables are altered.
# 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 and does not support some of the features that this control
# script uses (specifically arrays). Bash version 2.x does support