1 |
On Mon, 2002-03-11 at 22:44, Yannick Koehler wrote: |
2 |
> Matt Beland wrote: |
3 |
> > On Mon, Mar 11, 2002 at 01:16:45PM -0500, Yannick Koehler wrote: |
4 |
> > |
5 |
> >>Craig M. Reece wrote: |
6 |
> >> |
7 |
> >>>On Mon, Mar 11, 2002 at 12:48:08PM -0500, Yannick Koehler spoke thusly: |
8 |
> >>> |
9 |
> >>> |
10 |
> >>>>Guys, |
11 |
> >>>> |
12 |
> >>>> not sure for anyone else but is init.d really need to be protected? |
13 |
> >>>> I mean does someone really change files in that directory (other |
14 |
> >>>> than adding or removing)? |
15 |
> >>>> |
16 |
> >>>> That dir should always get merged. It would also get really nice of |
17 |
> >>>> the portage could detect that no changes has been made to the file |
18 |
> >>>> since its installation and therefore merge it without any issues. |
19 |
> >>>> |
20 |
> >>>> Like if the protected config file's time were saved in a temp files |
21 |
> >>>> that portage would look into before merging to see if the date has |
22 |
> >>>> or not change since the last install. |
23 |
> >>>> |
24 |
> >>>> |
25 |
> >>>> |
26 |
> >>>Yes it needs to be protected. I, for instance, have my own version of |
27 |
> >>>pcmcia in there that I don't want stepped on. Also, I have a couple of |
28 |
> >>>other custom scripts for things not in portage yet; and when they are in |
29 |
> >>>portage, I want to be able to compare the differences before using one |
30 |
> >>>or the other. |
31 |
> >>> |
32 |
> >>The reasoning I have is that those are scripts, and not config files. |
33 |
> >>If ... instead of modifying pcmcia script for example like you |
34 |
> >>mentionned you were to cp pcmcia pcmcia.modif and rc-update add |
35 |
> >>pcmcia.modif default / rc-update del pcmcia default the system would |
36 |
> >>work and you'll never get concerned about the new pcmcia scripts. |
37 |
> >> |
38 |
> > |
39 |
> > They are sometimes both scripts and config files. Personally, I like the |
40 |
> > layout of the Gentoo initscripts, particularly with regard to the "local" |
41 |
> > script and the ability to start "simple" daemons and scripts with a config |
42 |
> > file. However, many of the scripts we add to the init.d directory are not |
43 |
> > custom-written for Gentoo, they're written for Linux in general. They |
44 |
> > include the necessary config settings in the init file itself. And those |
45 |
> > should not be clobbered. |
46 |
> > |
47 |
> |
48 |
> While I understand that by having seen some of those scripts in the |
49 |
> past, I don't see a reason not to either do work by removing those |
50 |
> 'config' part and moving them to a /etc/ file and then committing a |
51 |
> patch into gentoo or the original package owner. I'm pretty sure doing |
52 |
> so wouldn't be considered gentoo either. I've seen some distro doing |
53 |
> that inside most of their init scripts in order to ensure no one play |
54 |
> with them directely and kind of filtering the dangerous settings from |
55 |
> the config file (always by warning the end-user thought through a log or |
56 |
> something like that). |
57 |
> |
58 |
|
59 |
Once again ... if you have everthing latest, you should not need to edit |
60 |
a file in /etc/init.d/ . All the config settings is in /etc/conf.d/ . |
61 |
This should anyhow go for most users who do not have a unusual setup. |
62 |
|
63 |
> >>If you changes those scripts maybe it's even better to tell people about |
64 |
> >>your changes as they may get implemented such that the script itself |
65 |
> >>read a config files (like net.eth0) so that other people can re-use your |
66 |
> >>modifications. |
67 |
> >> |
68 |
> > |
69 |
> > That's fine for things like the tweaked pcmcia script - but what if the |
70 |
> > tweaks are in order to permit a specific driver to work properly? Those |
71 |
> > changes should not be in the default initscript, they should at most be |
72 |
> > provided as a commented-out section - which, again, would require user |
73 |
> > intervention to create the required "tweaked" script. |
74 |
> |
75 |
> I don't agree here. If you have script that make a piece of hardware |
76 |
> work they should get committed inside Gentoo. Otherwise other people |
77 |
> that have the same issues won't be able to make it work either. If it's |
78 |
> for a specific hardware combination then why making all other users |
79 |
> spend their time diff/mv files while you'll be the only one with that |
80 |
> problem? |
81 |
> |
82 |
> Also having something like I mentionned called user.d where you could |
83 |
> put your own script file would be resolving that. Maybe even better |
84 |
> would be to have gentoo write scripts by default to system.d and have |
85 |
> symlink inside init.d so that if it attempt to copy a script inside |
86 |
> init.d and see that it's not a link to a system.d files then it doesn't |
87 |
> override it and warn instead. The whole idea could also be used for the |
88 |
> /etc folder completely. |
89 |
> |
90 |
> > It wouldn't solve the problem for custom scripts. Suppose (as an example) |
91 |
> > that I have installed OpenSSH by compiling it from source, then later |
92 |
> > I emerge the ssh ebuild. I would have installed an initscript already, |
93 |
> > I would call it 'sshd' by default. Before I blindly replace it with the |
94 |
> > Gentoo initscript, I would want to examine it and see how it did things. |
95 |
> > |
96 |
> |
97 |
> |
98 |
> see above |
99 |
> |
100 |
> >>And maybe a user's scripts directory should exists, something like |
101 |
> >>/etc/user.d where people can move their custom scripts and the stuff |
102 |
> >>behind rc-update would got here first and if it doesn't found the script |
103 |
> >>then to /etc/init.d. |
104 |
> >> |
105 |
> > |
106 |
> > While I don't agree with everything that "the standard linux" build does, |
107 |
> > particularly as defined in the LSB project, I don't think we should be |
108 |
> > creating new directories within /etc/ just to make things a little more |
109 |
> > convenient. Especiually when that convenience comes with a price in the |
110 |
> > form of an increased risk of system breakage. |
111 |
> |
112 |
> Actually I think the opposite. Convenience for me is really important. |
113 |
> The less I have to do the more I'm happy and can do something else. |
114 |
> That's why I'm complaining at the first place. I've merge a couple of |
115 |
> time baselayout and while this package shouldn't be updated frequentely |
116 |
> IMHO it shouldn't be kept idle either if it can still be enhanced. |
117 |
> Therefore I think to make the thing more convenient and less annyoing we |
118 |
> should enhance it a little more. |
119 |
> |
120 |
> Yannick Koehler |
121 |
> |
122 |
> |
123 |
> |
124 |
> |
125 |
> _______________________________________________ |
126 |
> gentoo-dev mailing list |
127 |
> gentoo-dev@g.o |
128 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |
129 |
-- |
130 |
|
131 |
Martin Schlemmer |
132 |
Gentoo Linux Developer, Desktop Team Developer |
133 |
Cape Town, South Africa |