HP XC System Software Administration Guide Version 2.1

3
Managing System Services
This chapter describes the HP XC system services and the procedures for their use. These
topics are covered in this chapter:
A discussion on HP XC system services and
the service command (Section 3.1)
Information on th e HP XC system comm ands to display information on which s ervices
are present, which nodes provide a giv en service, and which services are provided on a
given node (Section 3.2)
Restarting a service (Section 3.3)
Stopping a service (Section 3.4)
Background information a nd procedures to add a service (Section 3.5)
A discussion of global services (Section 3.6)
Information o n the NTP service (Sec
tion 3.7)
3.1 HP XC System Services
A service is a process that monitors a specific condition but is usua lly otherwise inactive. When
the condition chan ges, the service activates itself to perform a given function. In a dd ition to
the Linux services, there are HP X C system services, which are described in this chapter and
Nagios services; Chapter 6 contains information on Nagios.
The service command is the prim
ary means for stopping and restarting services on the
HP XC system.
The various syntaxes of the service command are:
service [ servicename [ subcomma nd ]]
service --status-all
In the last syntax statement, th e availab le subcom mands dep end on the individ ual
servicename. Consider the following example, where the user invokes the service
snmpd command, then invokes th e service syslog-ngcommand. In each instance, a
usage note is returned.
# service snmpd
Usage: /etc/init.d/snmpd
{start|stop|status|restart|condrestart|reload}
# service syslog-ng
Usage: /etc/init.d/syslog-ng
{start|stop|status|restart|reload|nconfigure|nstart|nstop}
Notice that the options for ea
ch service differ. The snmpd and syslog-ng services b oth have
the start, stop, status, res
tart,andreload subcommands in common, but there are
other subcommands that are u
nique to the individual service.
Usually, the start, stop, restart,andstatus subcommands are available for all
services.
Table 3 -1 lists key HP XC system services and their corresponding service names.
Managing System Services 3-1