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 <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-11-09 14:25:49 +01:00
parent 8425bc313b
commit f26009ec3e
+3
View File
@@ -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;