Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP XC System Software : Administration Guide > Chapter 4 Managing and Customizing System Services

Restarting a Service

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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
Note:

Some services do not provide a restart option. For such services, you must issue a service stop command followed by a service start command.

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:

# service --full-restart

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.

  1. 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
  2. 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
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.