this is a trivial linux command.
ps -ax | grep -v grep | grep <program>
or
ps -C <program>
or
systemctl is-active <service name>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello Team,
I have a C# .NET Core 3.1 daemon application which is running in RedHat Linux. Application output type is console application
I have one new requirement.
When i run the sudo systemctl start testapp.service command in second time, the application is already running message has to show in terminal window.
Now if i run two times sudo systemctl start testapp.service command, there is no message displaying in terminal window.
Could you please help me on this?
Regards,
Prabs
this is a trivial linux command.
ps -ax | grep -v grep | grep <program>
or
ps -C <program>
or
systemctl is-active <service name>