Let me state my idea here. At first I want to mention that author provided 2 different approaches to the solution, simple dependency loop checker and another more complicated algorithm that is a loop breaker.
I think that on a boot phase in case of parallel boot rc should try to check if loop exists and it is then print a warning and switch to a sequential boot. The only problem here is if its possible to switch to a sequential boot during the boot process. So with this approach we will have a simple solution that will definitely solve the problem, opposed to the loop breaker that afaiu doesn't give such guarantees. A loop breaker can live as a standalone application or as a part of rc-update. Just my 2ยข. -- Alexander (qnikst) > On Dec 3, 2014 9:39 PM, "William Hubbs" <willi...@gentoo.org> wrote: >> >> All, >> >> we have a pull request on OpenRC for a dependency checker [1]. >> >> The author of this patch believes that we should not only scan for >> circular deps, but break some of them automatically. >> >> I, and several other team members I have spoken with on IRC, disagree >> with this and think that we should just warn about the circular deps >> since users can break them by modifying files in /etc/conf.d, and the >> service script writers should be told about these kinds of issues so >> they can determine whether they neeed to adjust the dependencies in >> their scripts. >> >> I wanted to post a question here to see what people think, so feel free >> to comment. >> >> My opinion is the less automatic adjustment we do the better. >> >> Thanks, >> >> William >> >> [1] https://github.com/openrc/openrc/pull/12