mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07: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:
@@ -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