HP XC System Software Administration Guide Version 3.0
nagios_monitor: n3
nsca: n3
ntp: n3
slurm: n3
supermond: n3
syslogng_forward: n3
The shownode services node server command displays no output if no server exists.
For more information, see shownode(8).
Restarting a Service
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 or the cexec command with the service command to restart a service on the
designated nodes:
# cexec -w nodename "/sbin/service servicename restart"
Use the following command from the head node to restart all services:
# service --full-restart
Stopping a Service
Use the following command line syntax to stop an individual service on the current node:
# service servicename stop
Use the pdsh or cexec command with the service command, as shown here, to stop a service on one
or more designated nodes:
# cexec -w nodename "/sbin/service servicename stop"
Use the following command to stop the service on all nodes:
# cexec -a "/sbin/service servicename stop"
Adding a Service
A third-party software installation might result in the need to add a service. You need to decide whether to
add the service to an existing role or to a new role. This section describes both procedures.
The addition of a service requires the understanding of the roles_services.ini file and the possible
creation of a service.ini file. This section describes both files.
Adding a service also requires that you perform the following actions:
• Reconfigure the HP XC system.
• Update the configuration database.
• Reimage nodes.
• Restart the HP XC system.
Adding a service has a considerable impact on the system.
Understanding the roles_services.ini File
An important factor in the addition of a service is the /opt/hptc/config/roles_services.ini file.
This file is organized into stanzas as follows:
• The first stanza lists all the roles:
Restarting a Service 47