check the service status, then do something