[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:
Joachim Nilsson
2015-12-02 13:06:16 +01:00
parent 4c3e053041
commit ed5ee667ae
+2 -2
View File
@@ -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;