Wait for all services to complete before changing runlevel

We allow all run/task/services to complete before changing runlevel.
This means stepping them all while we wait for their completion, since
services may depend on each other.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-10-03 08:40:23 +02:00
1 parent 231b887b2a
commit 060de93b5b
2 files changed
+6

No files matched your search

+3
View File
@@ -481,6 +481,9 @@ int main(int argc, char* argv[])
api_init(&loop);
umask(022);
/* Finalize bootstrap, allow service/run/tasks to complete */
service_step_all(SVC_TYPE_ANY);
/*
* Wait for all SVC_TYPE_RUNTASK to have completed their work in
* [S], or timeout, before calling finalize()