HP XC System Software Administration Guide Version 3.2

4.4 Stopping a Service
The method to use to stop a service depends whether or not improved availability is in effect for
that service.
Improved Availability Is Not in Effect
Use the following command line syntax to stop an individual service on the current node:
# service servicename stop
Use the pdsh command with the service command, as shown here, to stop a service on one
or more designated nodes:
# pdsh -w nodename "/sbin/service servicename stop"
Use the following command to stop the service on all nodes:
# pdsh -a "/sbin/service servicename stop"
Improved Availability Is in Effect
If improved availability is in effect, you must stop the service using your system's availability
tool. Following is an example of how to stop the nagios service using HP Serviceguard. This
example stops the Nagios master, which is running on node n128.
1. Run the Serviceguard cmviewcl command to determine which node the Nagios master is
running on:
# cmviewcl | grep nagios
nagios.n128 up running enabled n128
2. Stop the nagios service, nagios.n128, with the following Serviceguard command:
# cmhaltpkg nagios.n128
4.5 Global System Services
Some system services need to run on all nodes. When the golden image is updated from the
golden client, the list of system services that are started automatically on each client is based on
a template file, /opt/hptc/systemimager/etc/chkconfig.map.
Entries in the chkconfig.map file indicate if the named service is to be turned on or turned off
on all the nodes in an HP XC system at a given run level. The following entry describes the
disposition of the crond service:
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
The output of the chkconfig --list command displays data in the same format.
For information on global system services from the perspective of updating the golden image,
see “Maintaining a Global Service Configuration” (page 150) .
4.6 Customizing Services and Roles
CAUTION: The procedures in this section are provided for experienced system administrators.
This section describes how to customize roles and services for an HP XC system configuration.
It addresses the following topics:
“Overview of the HP XC Services Configuration” (page 65)
“Service Configuration Sequence of Operation” (page 66)
Assigning Roles with the cluster_config Utility” (page 66)
“The *config.d Directories” (page 66)
“Configuration Scripts” (page 67)
“Understanding Global Configuration Scripts” (page 71)
64 Managing and Customizing System Services