How to check a service is running or not in Linux

Tutorials Shared by the Internet Community

Advertisements


Synopsis

This is a small How to for checking a service is running in the server or not. Some times we need to check the status of a service if it is runn

Statistics

  • Total Hits - 18239

  • Total Votes - 112 votes

  • Vote Up - 48 votes

  • Vote Down - 64 votes

  • Domain - www.linuxnix.com

  • Category - Linux/Administration

  • Submitted By - Surendra Anne

  • Submitted on - 2013-09-17 13:07:02

Description

This is a small "How to" for checking a service is running in the server or not.



Some times we need to check the status of a service if it is running or not to cross verify something 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.. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements