From 589a7ea8a5a2c210bf06914308138b6cd976ee7e Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 22 Jun 2015 11:08:13 +0200 Subject: [PATCH] Always run HOOK_SVC_RECONF on SIGHUP/reload When Finit receives SIGHUP or a reload command all services listed in /etc/finit.d/*.conf are first stopped and then started again. I.e., removed/changed services are stopped and then new/changed services are started again. In between we call HOOK_SVC_RECONF. It should always be called, even though no services were removed/changed/added. This to allow plugins connected to that hook may need to run as intended. Signed-off-by: Joachim Nilsson --- service.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/service.c b/service.c index 2f8382e4..b65c510b 100644 --- a/service.c +++ b/service.c @@ -397,9 +397,6 @@ void service_reload_dynamic(void) } } - if (!num) - return; - _d("All disabled/removed services have been stoppped, calling reconf hooks ..."); plugin_run_hooks(HOOK_SVC_RECONF); /* Reconfigure HW/VLANs/etc here */