Managing Serviceguard 11th Edition, Version A.11.16, Second Printing June 2004

Planning and Documenting an HA Cluster
Package Configuration Planning
Chapter 4 165
RUN_SCRIPT and the HALT_SCRIPT in the ASCII file.
When the package starts, its run script is executed and
passed the parameter ‘start’; similarly, at package halt
time, the halt script is executed and passed the
parameter ‘stop’.
If you choose to write separate package run and halt
scripts, be sure to include identical configuration
information (such as node names, IP addresses, etc.) in
both scripts.
Run script timeout and Halt script timeout
If the script has not completed by the specified timeout
value, Serviceguard will terminate the script. In the
ASCII configuration file, these parameters are
RUN_SCRIPT_TIMEOUT and HALT_SCRIPT_TIMEOUT.
Enter a value in seconds.
The default is 0, or no timeout. The minimum is 10
seconds, but the minimum HALT_SCRIPT_TIMEOUT
value must be greater than the sum of all the Service
Halt Timeout values. The absolute maximum value is
restricted only by the HP-UX parameter ULONG_MAX,
for an absolute limit of 4,294 seconds.
If the timeout is exceeded:
Control of the package will not be transferred.
The run or halt instructions will not be run.
Global switching will be disabled.
The current node will be disabled from running the
package.
The control script will exit with status 1.
If the halt script timeout occurs, you may need to
perform manual cleanup. See “Package Control Script
Hangs or Failures” in Chapter 8.