From f26009ec3e68261a47d3b5cd2a8e1a5c0a8017b5 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 9 Nov 2022 14:25:49 +0100 Subject: [PATCH] Follow-up to 912a281: reassert 'ready' condition on reload Services that have not been changed, or otherwise needed to be reloaded, need to have their 'ready' condition reasserted on 'initctl reload', otherwise it will remain in 'flux'. Signed-off-by: Joachim Wiberg --- plugins/pidfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/pidfile.c b/plugins/pidfile.c index 9ea55e61..ae2b32fa 100644 --- a/plugins/pidfile.c +++ b/plugins/pidfile.c @@ -233,6 +233,9 @@ static void pidfile_reconf(void *arg) if (svc_is_changed(svc) || svc_is_starting(svc)) continue; + if (!svc->notify) + service_ready(svc); + mkcond(svc, cond, sizeof(cond)); if (cond_get(cond) == COND_ON) continue;