Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
This is a small how to check if a service is running in the server or not.
Some times we need to check the status of a service if its running or not to cross verify some thing on server.. Suppose you have edited your httpd.conf file and when restarting the service it just show start service is on. But when you try to get access to the web site the site is down. At that time we can use below command to check if apache service is running or not..
Syntax:
#service servicename status
Example:
#service httpd status
clipped output of the above command
httpd (pid 7474) is running…
To check all the services state at a time use below command
#service --status-all Please comment on this if you have any other way to check the status of a service.