Managing HP Serviceguard for Linux, Sixth Edition, August 2006
Understanding Serviceguard Software Components
How Package Control Scripts Work
Chapter 364
During Halt Script Execution
Once the package manager has detected a service failure, or when the
cmhaltpkg command has been issued for a particular package, then it
launches the halt script (that is, the control script executed with the
‘halt’ parameter. This script carries out the following steps (also shown in
Figure 3-16):
1. Halts all package services.
2. Executes any customer-defined halt commands.
3. Removes package IP addresses from the LAN card on the node.
4. Unmounts file systems.
5. Deactivates volume groups.
6. Exits with an exit code of zero (0).
Figure 3-16 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.
This log has the same name as the halt script and the extension .log.
Normal starts are recorded in the log, together with error messages or
warnings related to halting the package.