check if service is running windows command line code example Example: check if service is running server systemctl is-active --quiet service