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.
systemctl status name.service
check this out