Gentoo Archives: gentoo-dev

From: Yannick Koehler <yannick.koehler@××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] /etc/init.d
Date: Mon, 11 Mar 2002 15:26:13
Message-Id: 3C8D20E3.8020707@colubris.com
In Reply to: Re: [gentoo-dev] /etc/init.d by Matt Beland
1 Matt Beland wrote:
2 > On Mon, Mar 11, 2002 at 02:32:24PM -0500, Yannick Koehler wrote:
3 > They are not more important, than the binaries, but they are far more likely
4 > to have been modified by the end user. If the end user has modified the
5 > binary, then they almost certainly are not using the ebuild. However, if all
6 > I want/need to do is modify the initscript, then I'm not going to go to the
7 > added hassle of manually tracking the program just because I use a different
8 > init from that provided by the ebuild.
9
10 I think that gentoo's ebuild system open the doors to customized
11 binaries. That's actually why I like gentoo so much, I can grab an
12 ebuild, run ebuild <put your name>.ebuild extract, then customize the
13 source code and do the rest compile/install/qmerge. It's even more
14 simpler than ./configure && make && make install because it will
15 override my previous files and I'm sure not to have duplicates.
16
17 So in my case its exactly the reverse that occurs, I have more binaries
18 customized than scripts inside /etc/init.d. I recentely changes my
19 syslog-ng to strip the program name from the $MSG macro because I
20 already had a $PROGRAM macro displaying its name. I sent the patch to
21 the owner meanwhile I have my version running. I fixed some issues
22 inside my mozilla because I knew that code. I changed the way some
23 other binaries worked too to my liking. Now I know what I did and it's
24 easy for me to re-emerge that stuff. But inside /etc I had to modify
25 files which I don't know all, some where modified by program which I
26 have no idea what exactly they did until I read their manual. So I
27 can't blind copy new files. I have to do the merge but last time my
28 merge could have been 7 files instead of 35. and the previous time 5
29 instead of 24. etc.. And I expect not to be the only one which means
30 that you can multiply that by a big number. So I think there's place in
31 there for enhancement.
32
33 >
34 >>Therefore I think they should be treated the same. Now they are treated
35 >>as config file and require end-users intervention when I don't see a
36 >>reason for most end-user. Like programs, some users will modify their
37 >>program by using personnaly modified source tree and those would know
38 >>not to put the binary or merge those package.
39 >>
40 >
41 > They are treated as a config file because they are a config file. They control
42 > how the binaries are started, how they're stopped, and how they're tracked
43 > while running. The current behavior is the proper behavior.
44
45 From what I understand from a previous post, the config of those
46 scripts are in /etc/conf.d and not inside the scripts themselves.
47
48 >
49 >>Actually I think it's even worse treating those files as config.
50 >>Because new users, the one that you always want to get in a distro may
51 >>be running pretty old script as they may not be aware on how to do the
52 >>merge step manually.
53 >>
54 >
55 > I understand the point behind being newbie-friendly, and the arguments for
56 > making something "easier for new users", but I have to disagree in this case.
57 > You're advocating making the system easier for a new user while making life
58 > more difficult for an advanced user. Quite frankly, that's why many of us
59 > *moved* to Gentoo over RedHat or one of the other distributions - they make
60 > life easier for new users at the expense of some of the innate power and
61 > flexibility of Unix.
62 >
63 >
64
65 End-users that modify their scripts should use either different names or
66 backup them. As most people do about original works. I don't agree
67 it make their life more complicated because anyway those people knows
68 more and won't look forever at the cause of their problems compares to
69 newbies.
70
71 Yannick Koehler