Start all services in parallel inside device-steps
Refactor pillar to be able to start all services in parallel inside device-steps
If I correctly understood the comment https://github.com/lf-edge/eve/pull/2839#issuecomment-1266149108, we should firstly try to refactor existence logic to be able to start services at some place in device-steps (after upgrade converter) and split device-steps later onto onboot and service part. Inside this PR I put required changes. Probably we can split the last commit (about Fix flags parsing in go routines) into separate PR.
We can do this but to be safe we should add WaitForOnboarded() to the top of Run in agents which are currently started after client has run.
Well, seems it works, and handle certificate generation order as well (as we start client after all certs generated), thank you!