I am writing a script to automatically install the binding server in a CentOs 7 distribution.
I am stuck with systemctl status because it does not generate an error code (this is correct since the state is not an error). I can use.
I want to check if the service is running (active). What is the best and most effective way to do this?
math source share