Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Understanding Serviceguard Software Components
How Packages Run
Chapter 3 69
NOTE If you use cmhaltpkg command with the -n <nodename> option, the
package is halted only if it is running on that node.
The cmmodpkg command cannot be used to halt a package, but it can
disable switching either on particular nodes or on all nodes. A package
can continue running when its switching has been disabled, but it will
not be able to start on other nodes if it stops running on its current node.
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 all package services.
2. Executes any customer-defined halt commands (legacy packages
only) or external_scripts (modular packages only; see page 226).
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).
7. Executes any external_pre_scripts (modular packages only; see
page 226).