3 ms·
Any parallel init system will have non-deterministic boot order. This is very different from race conditions. Non-deterministic boot order makes bugs in your
by aidenn0 11y ago
Any parallel init system will have non-deterministic boot order. This is very different from race conditions. Non-deterministic boot order makes bugs in your dependency system very hard to track down.
Some parallel build tools have options to do a non-parallel build, but randomize the order of dependencies. This can help track down failures due to improper dependencies regardless of parallelism available.
Race conditions are themselves bugs.
- ausjke 11y agoI wish the various rc.d/* scripts can support real dependency, i.e. I can optionally designate S50 will not start running until S49 is completed, this is useful sometimes.
- simoncion 11y agoJust use a sysvrc replacement (such as OpenRC ;) ) that actually supports service dependency declaration.
- aidenn0 11y agoActually I bootstrapped all of my init systems with OpenRC; it has tools for dependency calculation and all runscript based init scripts can be run with -D so that you can handle dependencies rather than it; I gradually replaced the existing init scripts with something a bit more amenable to the non-reparenting style I prefer, but it's very useful for getting started.
- ausjke 11y agoThanks. never used openrc and am looking into it.