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:
Joachim Nilsson
2017-10-11 23:02:13 +02:00
parent 52ccd6d662
commit 46cef811d6
+2 -1
View File
@@ -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);
}