Managing Serviceguard 13th Edition, February 2007

Configuring Packages and Their Services
Creating the Package Control Script
Chapter 6280
NOTE This a sample file that may not be identical to the file produced by the
version of Serviceguard running on your system. Run cmmakepkg -s
pathname to generate a package control script template on your local
Serviceguard node; see “Using Serviceguard Commands to Configure a
Package” on page 258 for more information.
# **********************************************************************
# * *
# * HIGH AVAILABILITY PACKAGE CONTROL SCRIPT (template) *
# * *
# * Note: This file MUST be edited before it can be used. *
# * *
# **********************************************************************
# 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 package 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.
. ${SGCONFFILE:=/etc/cmcluster.conf}
# UNCOMMENT the variables as you set them.
# Set PATH to reference the appropriate directories.
PATH=$SGSBIN:/usr/bin:/usr/sbin:/etc:/bin
# VOLUME GROUP ACTIVATION:
# Specify the method of activation for volume groups.
# Leave the default (VGCHANGE=”vgchange -a e”) if you want volume
# groups activated in exclusive mode. This assumes the volume groups have
# been initialized with ‘vgchange -c y’ at the time of creation.
#