The method to use to restart 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 restart
an individual service on the current node:
# service servicename restart |
Use the pdsh command command with the service command to restart a service on the designated
nodes:
# pdsh -w nodename "/sbin/service servicename restart" |
Use the following command from the head node to
restart all services:
Improved Availability Is in Effect
If improved availability is in effect, you must
restart the nagios service (that is, the Nagios
master) using your system's availability tool. Following is an
example of how to restart the nagios service using HP Serviceguard.
This example restarts the Nagios master, which is running on node n128.
Run the /usr/local/cmcluster/bin/cmviewcl command to determine which node the Nagios master is running on.
# /usr/local/cmcluster/bin/cmviewcl | grep nagios
nagios.n128 up running enabled n128 |
Restart Nagios using the following
Serviceguard commands.
# /usr/local/cmcluster/bin/cmhaltpkg nagios.n128
# /usr/local/cmcluster/bin/cmrunpkg -n n128 nagios.n128
# /usr/local/cmcluster/bin/cmmodpkg -e nagios.n128 |