mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
[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 <troglobit@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user