Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: should openrc be mandatory on all gentoo systems?
Date: Wed, 29 Jun 2011 17:01:54
Message-Id: BANLkTikc9XZqanNV==8aV2oSin-xgTtDVg@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: should openrc be mandatory on all gentoo systems? by Ulrich Mueller
1 On Wed, Jun 29, 2011 at 03:38, Ulrich Mueller wrote:
2 >>>>>> On Wed, 29 Jun 2011, Mike Frysinger wrote:
3 >>>> >> /etc/init.d/functions.sh has existed for the last decade, and
4 >>>> >> was long ago decided as the canonical public entry point for
5 >>>> >> scripts external to baselayout (as opposed to a path in
6 >>>> >> /sbin/).
7 >>
8 >> the file should provide the classic e* output funcs that we've all
9 >> grown to love, and are now enshrined in PMS. it has had other
10 >> functions come and go over the years, but i think things have
11 >> settled on just the output helpers. was there anything other than
12 >> the output helpers you were interested in ?
13 >
14 > eselect also uses other functions from it, like rc_runlevel().
15
16 yes, but in this case, eselect is closely bound to what version
17 (baselayout-1 vs openrc vs ...) is installed so that it can manage the
18 init.d scripts and runlevels. as soon as the init code changes
19 drastically, then the eselect module does as well. i think this is a
20 different beast than what most every other external script is using it
21 for.
22 -mike