Detect status of the service process correctly