There is a script in “/etc/init.d” directory to control each system service. For example, “/etc/init.d/httpd” script is used to control Apache web service. Typically all the scripts under that directory support basic operations like start, stop, status.

The status of any service can be determined using the “status” option supported by the corresponding script of the system service. For example, to know whether the Apache web service is running or not, the following command can be used.

[neo@techpulp ~]# /etc/init.d/httpd status
httpd (pid  4201) is running...
[neo@techpulp ~]#

The following command check if SNMP service is active or not.

[neo@techpulp ~]# /etc/init.d/snmpd status
snmpd is stopped
[neo@techpulp ~]#

The following command finds if network is active or not.

[neo@techpulp ~]# /etc/init.d/network status
Configured devices:
lo eth0 wlan0
Currently active devices:
lo eth0
[neo@techpulp ~]#