From fe725b9ca0ead34c5a7e8409414b76134c1b442d Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Mon, 19 Feb 2018 10:57:40 +0000 Subject: [PATCH] Add comment. --- src/service.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/service.cc b/src/service.cc index 363f096..64c39f5 100644 --- a/src/service.cc +++ b/src/service.cc @@ -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); -- 2.25.1