Changing the service state.