Managing HP Serviceguard A.12.00.00 for Linux, June 2014

6.1.4.26 ip_address
A relocatable IP address on a specified ip_subnet.
For more information about relocatable IP addresses, see “Stationary and Relocatable IP Addresses
and Monitored Subnets” (page 60).
This parameter can be set for failover packages only.
6.1.4.27 service_name
A service is a program or function which Serviceguard monitors as long the package is up.
service_name identifies this function and is used by the cmrunserv and cmhaltserv
commands. You can configure a maximum of 30 services per package and 900 services per
cluster.
The length and formal restrictions for the name are the same as for package_name (page 185).
service_name must be unique among all packages in the cluster.
IMPORTANT: Restrictions on service names in previous Serviceguard releases were less stringent.
Packages that specify services whose names do not conform to the above rules will continue to
run, but if you reconfigure them, you will need to change the name; cmcheckconf and
cmapplyconf will enforce the new rules.
Each service is defined by five parameters: service_name, service_cmd, service_restart,
service_fail_fast_enabled, and service_halt_timeout. See the descriptions that
follow.
The following is an example of fully defined service:
service_name volume_mon
service_cmd "$SGSBIN/cmresserviced /dev/vx/dsk/dg_dd2/lvol2"
service_restart none
service_fail_fast_enabled yes
service_halt_timeout 300
See the package configuration template file for more examples.
6.1.4.28 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
Only Serviceguard environment variables defined in the /etc/cmcluster.conf file or an
absolute pathname can be used with Service command; neither the PATH variable nor any other
environment variable is passed to the command. The default shell is /bin/sh. For example,
service_cmd $SGCONF/pkg1/script.sh
service_cmd /etc/cmcluster/pkg1/script.sh
service_cmd /usr/local/cmcluster/conf/pkg1/script.sh
service_cmd /opt/cmcluster/conf/pkg1/script.sh
service_cmd $SGSBIN/cmresserviced /dev/sdd1
6.1 Choosing Package Modules 193