Managing HP Serviceguard for Linux, Seventh Edition, July 2007

Configuring Packages and Their Services
Choosing Package Modules
Chapter 6210
service_cmd
The command that runs the program or function for this service_name,
for example,
/usr/bin/X11/xclock -display 15.244.58.208:0
An absolute pathname is required; neither the PATH variable nor any
other environment variable is passed to the command. The default shell
is /bin/sh.
NOTE Be careful when defining service run commands. Each run command is
executed in the following way:
•The cmrunserv command executes the run command.
Serviceguard monitors the process ID (PID) of the process the run
command creates.
When the command started exits, Serviceguard determines that a
failure has occurred and takes appropriate action, which may include
transferring the package to an adoptive node.
If a run command is a shell script that runs some other command
and then exits, Serviceguard will consider this normal exit as a
failure.
To avoid problems in the execution of service commands, ensure that
each run command is the name of an actual service and that its process
remains alive until the actual service stops.
This parameter is in the package control script for legacy packages.
service_restart
The number of times Serviceguard will attempt to re-run the
service_cmd. Valid values are unlimited, none or any positive integer
value. Default is none.
If the value is unlimited, the service will be restarted an infinite
number of times. If the value is none, the service will not be restarted.
This parameter is in the package control script for legacy packages.