mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
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:
1 parent
8425bc313b
commit
f26009ec3e
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user