mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
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 <troglobit@gmail.com>
This commit is contained in:
1 parent
e5732f24d3
commit
589a7ea8a5
1 file changed
-3
@@ -397,9 +397,6 @@ void service_reload_dynamic(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!num)
|
|
||||||
return;
|
|
||||||
|
|
||||||
_d("All disabled/removed services have been stoppped, calling reconf hooks ...");
|
_d("All disabled/removed services have been stoppped, calling reconf hooks ...");
|
||||||
plugin_run_hooks(HOOK_SVC_RECONF); /* Reconfigure HW/VLANs/etc here */
|
plugin_run_hooks(HOOK_SVC_RECONF); /* Reconfigure HW/VLANs/etc here */
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user