-2

I'm using systemctl to setup and run my serviced on a Linux Redhat. How can I check if a service is in running state?

I can use

systemctl is-active <service name> 

to check if the service is is active or not. But I would like to check if the service is in the substate running.

enter image description here

Lasse Frandsen
  • 141
  • 1
  • 7

2 Answers2

-1

$ sudo service httpd status

OR you can check with list of services

$netstat -plnt