Add comment.
authorDavin McCall <davmac@davmac.org>
Mon, 19 Feb 2018 10:57:40 +0000 (10:57 +0000)
committerDavin McCall <davmac@davmac.org>
Mon, 19 Feb 2018 10:57:40 +0000 (10:57 +0000)
src/service.cc

index 363f096e76757492f85a9a64136e942199ac26f7..64c39f575e58a75810eae867db32ab04535ac066 100644 (file)
@@ -254,6 +254,8 @@ void service_record::do_start() noexcept
 
 void service_record::dependency_started() noexcept
 {
+    // Note that we check for STARTED state here in case the service is in smooth recovery while pinned.
+    // In that case it will wait for dependencies to start before restarting the process.
     if ((service_state == service_state_t::STARTING || service_state == service_state_t::STARTED)
             && waiting_for_deps) {
         services->add_transition_queue(this);