how know the status of a service and how to change the status.