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.
Run the Serviceguard cmviewcl command to determine which node the Nagios master
is running on:
# cmviewcl | grep nagios
nagios.n128 up running enabled n128 |
Stop the nagios service, nagios.n128, with the following Serviceguard command: