linux service status 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
Example 3: checking service status in linux
$ sudo service httpd start
Starting httpd: [ OK ]