Managing HP Serviceguard for Linux, Seventh Edition, July 2007

Understanding Serviceguard Software Components
How Packages Run
Chapter 366
During Halt Script Execution
Once the package manager has detected the failure of a service or
package that a failover package depends on, or when the cmhaltpkg
command has been issued for a particular package, the package manager
launches the halt script. That is, a package’s control script or master
control script is executed with the stop parameter. This script carries
out the following steps (also shown in Figure 3-16):
1. Halts any deferred resources that had been started earlier.
2. Halts all package services.
3. Executes any customer-defined halt commands (legacy packages
only) or external_scripts (modular packages only; see page 215).
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).
8. Executes any external_pre_scripts (modular packages only; see
page 215).
Figure 3-16 Legacy 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,