Make service state configurable