Adding a health check for query service in the right state.

CHanging the health check interface to pass a flag indicating
if QS should be running or not.