how to check whether windows service is running or not code example Example: check if service is running server systemctl is-active --quiet service