check if a service is running