We have several services that may run if our Configuration Service says the optional service is enabled (most everything depends on Configuration Service).
What's the appropriate action for a non-configured service to avoid running? Do I call stop() in the start() method? Do I throw an exception? Do I stop it earlier in the life cycle before start() is even called?
My searches haven't uncovered anything other than the Barrier example, but that doesn't fit the usage model I'm looking at here. Seems like a basic question, so I must be overlooking something in the docs.