Ce contenu n'est pas disponible dans la langue sélectionnée.
12.3. Running Services
The service utility allows you to start, stop, or restart the services from the
/etc/init.d/
directory.
12.3.1. Determining the Service Status
To determine the current status of a service, type the following at a shell prompt:
service
service_namestatus
For example, to determine the status of the
httpd
service, type:
~]# service httpd status
httpd (pid 7474) is running...
To display the status of all available services at once, run the
service
command with the --status-all
option:
~]# service --status-all
abrt (pid 1492) is running...
acpid (pid 1305) is running...
atd (pid 1540) is running...
auditd (pid 1103) is running...
automount (pid 1315) is running...
Avahi daemon is running
cpuspeed is stopped
... several lines omitted ...
wpa_supplicant (pid 1227) is running...
Note that you can also use the Service Configuration utility as described in Section 12.2.1, “Using the Service Configuration Utility”.