HP Serviceguard Developer's Toolbox Version B.12.00.00 For HP-UX and Linux

# |
# STEP SG_SCRIPT_ACTION | STEP SG_SCRIPT_ACTION
# |
# START | START
# VOLUME_GROUPS start | SERVICES stop
# FILESYSTEMS start | IP_ADDRESSES stop
# IP_ADDRESSES start | FILESYSTEMS stop
# SERVICES start | VOLUME_GROUPS stop
# END | END
#
# When a package includes external_pre scripts, the steps are executed
# in the following order (for both validation and execution):
#
# START
# /etc/cmcluster/packages/pkg1a/task0 start
# /etc/cmcluster/packages/pkg1a/task1 start
# /etc/cmcluster/packages/pkg1a/task2 start
# VOLUME_GROUPS
# FILESYSTEMS
# IP_ADDRESSES
# SERVICES
# END
#
# When the package halts, the steps are executed in the following order:
#
# START
# SERVICES
# IP_ADDRESSES
# FILESYSTEMS
# VOLUME_GROUPS
# /etc/cmcluster/packages/pkg1a/task2 stop
# /etc/cmcluster/packages/pkg1a/task1 stop
# /etc/cmcluster/packages/pkg1a/task0 stop
# END
#
# A script template is available at $SGCONF/examples/external_script.template
#
# Legal values for external_pre_script: <Any String>
#external_pre_script
# "external_script" specify additional programs to be run during package
# starts and halt time.
#
# external_script <program path name>
#
# The "external_script" replaces the customer_defined_run_cmds() and
# customer_defined_halt_cmds() function in the legacy package control script.
#
# The specified "external_script" program will be executed after IP
# addresses are assigned but before services are started during package
# validation and start time. It will be executed after services are
# halted but before removing IP addresses during package halt time.
#
# When the program is run the first argument "$1" will be set to "start"
# when starting, "stop" when halting and "validate" when doing a cmapplyconf
# or cmcheckconf.
#
# If more than one "external_script" is specified, the one specified first
# in this file will be run first during package start time, and last
# during package halt time.
#
#
# NOTE: All "external_script" programs will be run with the first argment "$1"
# set to "validate" when the package is applied to the configuration.
#
# Examples:
#
# external_script /etc/cmcluster/packages/pkg1a/task0
# external_script /etc/cmcluster/packages/pkg1a/task1
# external_script /etc/cmcluster/packages/pkg1a/task2
#
# The following is the sequence of standard steps (for a package without
# external scripts):
#
# Package starting | Package halting
|
# STEP SG_SCRIPT_ACTION
|
STEP SG_SCRIPT_ACTION
#
|
# START | START
# VOLUME_GROUPS start | DEFERRED_RESOURCES stop
# FILESYSTEMS start | SERVICES stop
# IP_ADDRESSES start | IP_ADDRESSES stop
# SERVICES start | FILESYSTEMS stop
# DEFERRED_RESOURCES start | VOLUME_GROUPS stop
# END | END
#
# When a package includes external scripts, the steps are executed in
# the following order (for both validation and execution):
#
# START
27