how to check status of services?
1: Using service command
#service servicename status
Example:
#service httpd status
clipped output of the above command
httpd (pid 7474) is running…
2: Using init.d scripts which are located in /etc/init.d folder
Example:
/etc/init.d/cron status
Clipped output of init.d script:
cron start/running, process 1253
3: Using status command to check if the service is running or not
Example:
status atd
Output:
atd start/running, process 1245
4. To check all the services state at a time use below command
#service --status-all
No comments:
Post a Comment