Managing Serviceguard 12th Edition, March 2006

Understanding Serviceguard Software Components
How Package Control Scripts Work
Chapter 396
During Halt Script Execution
This section applies only to failover packages.
Once the package manager has detected the failure of a service or
package that a failover pacakge depends on, or when the cmhaltpkg
command has been issued for a particular failover package, then the
package manager launches the halt script. That is, the failover package’s
control script executes the ‘halt’ parameter. This script carries out the
following steps (also shown in Figure 3-15):
1. Halts any deferred resources that had been started earlier.
2. Halts all package services.
3. Executes any customer-defined halt commands.
4. Removes package IP addresses from the LAN card on the node.
5. Unmounts file systems.
6. Deactivates volume groups.
7. Exits with an exit code of zero (0).
Figure 3-15 Package Time Line for Halt Script Execution
At any step along the way, an error will result in the script exiting
abnormally (with an exit code of 1). Also, if the halt script execution is
not complete before the time specified in the HALT_SCRIPT_TIMEOUT, the
package manager will kill the script. During halt script execution,
messages are written to a log file in the same directory as the halt script.