Fix: when a dependency failed, the dependent process was not marked
authorDavin McCall <davmac@davmac.org>
Thu, 31 Dec 2015 23:28:48 +0000 (23:28 +0000)
committerDavin McCall <davmac@davmac.org>
Thu, 31 Dec 2015 23:28:48 +0000 (23:28 +0000)
as inactive.

service.cc

index 7fb812625a8e7c54e492d68840d1c8c236cd7587..ddb5328a5d26746349c43d861a875483c2b82956 100644 (file)
@@ -425,6 +425,7 @@ void ServiceRecord::failed_dependency()
     
     // Presumably, we were starting. So now we're not.
     service_state = ServiceState::STOPPED;
+    service_set->service_inactive(this);
     
     // Notify dependents of this service also
     for (auto i = dependents.begin(); i != dependents.end(); i++) {