HP XC System Software Administration Guide Version 2.1

The shownode services node client command does n
ot display any output if there is
no client.
Another keyword, servers, allows you to determin e the node that provides a specified node
its services. In this example, the node n3 is found to supply itself with the ntp service:
# shownode services n3 servers
ntp: n3
The shownode services node server command displays no output if there is no server.
See the shownode
(8) manpage for more information.
3.3 Restarting a Service
Use the follow ing command line syn tax 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 com m a nd followed by a service start command.
Use the pdsh comm a nd or the cexec com mand with the service command to restart
a service on the designated nodes:
# cexec -w nodename "/sbin/service servicename restart"
Use the follow ing command from the head node to restart all serv ices:
# service --full-restart
3.4 Stopping a Service
Use the following comman
dlinesyntaxtostopanindividualserviceonthecurrentnode:
# service servicename stop
Use the pdsh or cexec command with the service command, as shown here, to stop a
service on a design ated node or on designated n odes:
# cexec -w nodename "/sbin/service servicename stop"
Use the following command to stop the service o n all nodes:
# cexec -a "/sbin/service servicename stop"
3.5 Adding a Service
A third-party so ftware installation may 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. Bo th procedures are provided.
The addition of a service requires the understanding of the roles_services.ini file ,
which is described in this section.
Adding a service also requires that you reconfigure the HP XC system , update the configuration
database, reimage nodes, and restart the HP XC system. Adding a service h as a considerable
impact on the system.
3.5.1 Understanding the roles_services.ini File
An important factor in the addition of a service is the /opt/hptc/config/roles_ser-
vices.ini file. T his file is organized into stanzas as follows:
Managing System Services 3-5