From: Davin McCall Date: Mon, 19 Feb 2018 10:57:40 +0000 (+0000) Subject: Add comment. X-Git-Tag: v0.1.0~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe725b9ca0ead34c5a7e8409414b76134c1b442d;p=oweals%2Fdinit.git Add comment. --- 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);