Improve the state model.
authorDavin McCall <davmac@davmac.org>
Wed, 18 Nov 2015 17:07:09 +0000 (17:07 +0000)
committerDavin McCall <davmac@davmac.org>
Wed, 18 Nov 2015 17:07:09 +0000 (17:07 +0000)
commitf47a0f369cf12e13c5ca6446331b1c36645eca68
tree1a21ac2f41a77e1d9e4b4d93da09928804b7b8ec
parentb87baeed8679928bf16ee40894d0b91293f23161
Improve the state model.

A service now transitions into the STARTING state from the STOPPED state
as soon as start() is called, rather than after all dependencies have
started. Similarly a service enteres the STOPPING state (from STARTED)
immediately when stop() is called.

Forced re-starts should now work properly in all cases.
load_service.cc
service.cc
service.h