Product SiteDocumentation Site

9.3. Running the Services

The service utility enables you to start, stop, or restart the services from the /etc/init.d/ directory. To use it, make sure you have superuser privileges:
~]$ su -
Password:

Use the Service Configuration utility

If you are running a graphical user interface, you can also use the Service Configuration utility. See Section 9.2.1, “Using the Service Configuration Utility” for more information.

9.3.1. Checking the Service Status

To check the current status of the service, type service service_name status. For example:
Example 9.4. Checking the status of httpd
~]# service httpd status
httpd (pid  7474) is running...

You can also display the status of all available services at once using the --status-all option:
Example 9.5. Checking the status of all services
~]# 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...