how to check status of a service in linux code example
Example 1: checking service status in linux
$ sudo service httpd status
httpd is stopped
Example 2: check service status in linux
$ sudo service httpd status
httpd is stopped
$ sudo service httpd status
httpd is stopped
$ sudo service httpd status
httpd is stopped