Various improvements to state transitions.
authorDavin McCall <davmac@davmac.org>
Fri, 1 Jan 2016 18:11:07 +0000 (18:11 +0000)
committerDavin McCall <davmac@davmac.org>
Fri, 1 Jan 2016 18:11:07 +0000 (18:11 +0000)
commit6f0f45e5905144ea892ba356fced69bf9f9fbedd
tree4b5c8c22420d35382e4fc9c8d98b0310b2ba3f02
parent9d6378f373a3e54862bfcefe820177c0613498c7
Various improvements to state transitions.

Introduce a new variable to track if a service is waiting for its
dependencies (starting) or dependents (stopping). In these cases
it is possible to transition directly from STARTING to STOPPED or
from STOPPING to STARTED. This also removes the need for special
handling of "internal" services (which will never transition from
STARTING to STARTED or STOPPING to STOPPED excet via transitions
of their dependencies/dependents).
service.cc
service.h