How to see if a service is running on Linux? : <p>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? </p>

<p>I can use </p>

<pre><code>systemctl is-active &lt;service name&gt; 
</code></pre>

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

<p><a href="https://i.stack.imgur.com/62XWE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/62XWE.png" alt="enter image description here"></a></p>
