mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +00: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:
1 parent
4c3e053041
commit
ed5ee667ae
1 file changed
+1
-1
@@ -399,12 +399,12 @@ static int service_stop_done(svc_t *svc)
|
|||||||
if (svc && dyn_stop_cnt)
|
if (svc && dyn_stop_cnt)
|
||||||
dyn_stop_cnt--;
|
dyn_stop_cnt--;
|
||||||
|
|
||||||
|
_d("dyn_stop_cnt %d", dyn_stop_cnt);
|
||||||
if (!dyn_stop_cnt) {
|
if (!dyn_stop_cnt) {
|
||||||
_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 */
|
||||||
|
|
||||||
/* Finish off by starting/reload modified/new services */
|
/* Finish off by starting/reload modified/new services */
|
||||||
if (svc && svc->state == SVC_RELOAD_STATE)
|
|
||||||
service_start_dynamic();
|
service_start_dynamic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user