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_name status
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”.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.