
Originally Posted by
kigurai
If sysvinit is the only really good choice to couple with OpenRC, why would I want that instead of just running sysvinit directly? Genuine question, because I haven't used gentoo in a long time, and never heard of OpenRC.
Just a Gentoo user here. With OpenRC, first and foremost, I am free from the horror of the 0 1 2 3 4 5 6 runlevels. Also, I found the syntax provided by OpenRC (need, use, provide, before, after) to be very nice.
Let's use a software xxx that can use different database backends as an example. On Gentoo, I can just put
Code:
use mysql postgresql
in the /etc/init.d/xxx script, and then never have to bother whether the deployed instance uses MySQL or PostgreSQL. Let's say my deployed instance uses PostgreSQL, while I also have MySQL installed on the same machine for testing only and thus doesn't want it to autostart, then I can just run:
Code:
rc-update add postgresql-9.2 default
rc-update add xxx default
and it will just work. As I mostly just use Gentoo, I am not sure how to do the same with sysvinit, upstart, or systemd.