Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: 1i5t5.duncan@×××.net
Subject: Re: [gentoo-dev] Re: Questions about SystemD and OpenRC
Date: Fri, 10 Aug 2012 07:43:52
Message-Id: 20120810094326.10bed086@pomiocik.lan
In Reply to: [gentoo-dev] Re: Questions about SystemD and OpenRC by Duncan <1i5t5.duncan@cox.net>
1 On Fri, 10 Aug 2012 05:04:40 +0000 (UTC)
2 Duncan <1i5t5.duncan@×××.net> wrote:
3
4 > Michał Górny posted on Thu, 09 Aug 2012 22:47:38 +0200 as excerpted:
5 >
6 > > On Thu, 09 Aug 2012 22:30:02 +0200 Luca Barbato <lu_zero@g.o>
7 > > wrote:
8 > >
9 > >> On 08/09/2012 09:43 PM, Michał Górny wrote:
10 > >>> On Thu, 09 Aug 2012 10:42:15 +0200 Luca Barbato
11 > >>> <lu_zero@g.o> wrote:
12 >
13 > >>>> [W]e could discuss about why reinventing shellscript may
14 > >>>> not be that sound and other less glaring, horrid and
15 > >>>> appalling design choices.
16 > >>>
17 > >>> Yes, exactly. So why does openrc reinvent that horrible
18 > >>> shellscript?
19 > >>
20 > >> It is not re-invented, in fact we can use any compatible shell.
21 > >
22 > > Or anything else what can be spawned for shell. And a lot more what
23 > > you won't expect. And guess what, people are actually doing crazy
24 > > things with it because someone forgot to tell them how a init.d
25 > > script should work.
26 >
27 > Sounds interesting. A couple quick links to examples of what you had
28 > in mind would be nice. =:^)
29 >
30 > (Or a bit more description, enough to both get the concept and google
31 > with would be good, but links could be quicker if you have them
32 > handy, and are less likely to spawn even further afield subthreads.)
33
34 vdr is a first example which comes to my mind. They workaround program
35 configuration limitations and the init.d scripts become a complex
36 extra-configuration parser + plugin loader. Well, another thing here is
37 that upstream AFAIK is not willing to cooperate to fix their config
38 parsing.
39
40 'oldnet' is an another example. I'm not saying it should go; I'm saying
41 it should be a stand-alone executable called from the init.d script.
42
43 Last time I looked, squid init.d was performing post-inst in start().
44 Many users may find that beneficial but that's not what init.d scripts
45 should be doing.
46
47 --
48 Best regards,
49 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Re: Questions about SystemD and OpenRC Luca Barbato <lu_zero@g.o>
[gentoo-dev] Re: Questions about SystemD and OpenRC Duncan <1i5t5.duncan@×××.net>