Fix checking whether a service is up.