From ed5ee667ae93b4b7b2ded43a364a4005cd4852a3 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 2 Dec 2015 13:02:10 +0100 Subject: [PATCH] [Patch 2/2]: Make sure to start/SIGHUP services when none were stopped When no services were stopped we must ensure to start/SIGHUP any new or SIGHUP:able services as the last pass of the `initctl reload` cycle. Signed-off-by: Joachim Nilsson --- service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service.c b/service.c index e5700968..16cadef8 100644 --- a/service.c +++ b/service.c @@ -399,13 +399,13 @@ static int service_stop_done(svc_t *svc) if (svc && dyn_stop_cnt) dyn_stop_cnt--; + _d("dyn_stop_cnt %d", dyn_stop_cnt); if (!dyn_stop_cnt) { _d("All disabled/removed services have been stoppped, calling reconf hooks ..."); plugin_run_hooks(HOOK_SVC_RECONF); /* Reconfigure HW/VLANs/etc here */ /* Finish off by starting/reload modified/new services */ - if (svc && svc->state == SVC_RELOAD_STATE) - service_start_dynamic(); + service_start_dynamic(); } return 1;