Thu, Jan 05, 2017 at 09:33:41PM -0800, Colin Booth wrote:

> >  I didn't look too hard at the source code because things like this
> > _should_ be documented no matter what. I remember early experiments
> > with old RedHats or Debians where the gettys were actually started in
> > parallel, but things may have changed since. My experience with Alpine
> > matches yours: at least getty1 gets started after "openrc default" - but
> > that's a busybox init implementation choice.
> 
> As I have learned with Debian, init waits until each line is done
> before going on to the next.

It can be either way actually, check "wait" vs "once" in inittab(5).
Most setups that do stuff like /etc/rc2.d run those as "wait", but
it's not strictly necessary if rc.d scripts are known not to interfere
with gettys/logins/etc.

Sources, in case anyone's willing to look: in sysvinit it's startup()
and the loop from start_if_needed(); in busybox it's run_actions()
calls in init_main(), and run_actions() itself.

Reply via email to