From: Davin McCall Date: Wed, 4 Dec 2019 12:19:19 +0000 (+1000) Subject: Set target state to STOPPED when stop is issued X-Git-Tag: v0.8.0~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8b9f2e18aa0b6cf81032353efc5e14ba1e44c9b;p=oweals%2Fdinit.git Set target state to STOPPED when stop is issued --- diff --git a/src/service.cc b/src/service.cc index 16cb394..18987c6 100644 --- a/src/service.cc +++ b/src/service.cc @@ -493,6 +493,8 @@ void service_record::stop(bool bring_down) noexcept bring_down = true; } + desired_state = service_state_t::STOPPED; + if (bring_down && service_state != service_state_t::STOPPED && service_state != service_state_t::STOPPING) { stop_reason = stopped_reason_t::NORMAL;