mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
Make sure to step state machine when collecting bootstrap tasks
During the runlevel change from S --> 2 the state machine will pause, waiting to collect all S-only tasks/services, before continuing. When an S-only task/service is collected we therefore need to call the state machine again so that it can reassert all conditions properly. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+2
-1
@@ -720,7 +720,7 @@ void service_monitor(pid_t lost)
|
||||
|
||||
if (svc_clean_bootstrap(svc)) {
|
||||
_d("collected bootstrap task %s(%d), removing.", svc->cmd, lost);
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
|
||||
_d("collected %s(%d)", svc->cmd, lost);
|
||||
@@ -736,6 +736,7 @@ void service_monitor(pid_t lost)
|
||||
svc->pid = 0;
|
||||
service_step(svc);
|
||||
|
||||
done:
|
||||
sm_step(&sm);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user