Fix problem with restarting a service.