Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Serviceguard Commands
Appendix A 331
cmrunserv Run a service from the high availability package
run script. This is not a command line executable
command, it runs only from within the package
control script.
cmrunserv is used in the high availability package
run script to run a service. If the service process
dies, cmrunserv updates the status of the service to
down. The cluster software will recognize the
change in status and execute the normal package
recovery sequence. This includes executing the
package halt script, determining if the package can
be run on a different node, and if so, executing the
package run script on the new node.
Should the service_command be halted by the
cmhaltserv command, a SIGTERM signal will be
sent to the process. This executable or shell script
should be able to handle a SIGTERM signal and
execute a graceful shutdown performing any
cleanup necessary. If the process ignores the
SIGTERM, a SIGKILL will be sent to the process.
If a SIGKILL is sent, the process will die
immediately and will be unable to perform any
cleanup.
Table A-1 Serviceguard Commands (Continued)
Command Description