1 |
drobbins |
1.6 |
# ChangeLog for Gentoo Linux System Intialization ("rc") scripts |
2 |
azarah |
1.51 |
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL |
3 |
drobbins |
1.6 |
# Written by Daniel Robbins (drobbins@gentoo.org) |
4 |
azarah |
1.51 |
|
5 |
azarah |
1.70 |
23 April 2002; Martin Schlemmer <azarah@gentoo.org>: |
6 |
|
|
|
7 |
|
|
Remove creation of /var/run/utmpx from bootmisc again. Seems |
8 |
|
|
other people have wierd problems. |
9 |
|
|
|
10 |
azarah |
1.68 |
* rc-scripts 1.3.4 (21 April 2002) |
11 |
|
|
|
12 |
|
|
21 April 2002; Martin Schlemmer <azarah@gentoo.org>: |
13 |
|
|
|
14 |
|
|
Add /sbin/rc-envupdate.sh to speedup updating of /etc/profile.env, |
15 |
|
|
and /etc/csh.env. Update /etc/init.d/bootmisc to use this. |
16 |
|
|
|
17 |
azarah |
1.69 |
Implement the status commandline argument. Updated /sbin/runscript.sh |
18 |
|
|
and /sbin/rc-help.sh for this. |
19 |
|
|
|
20 |
|
|
Fix /sbin/depscan.sh to honour NEED and USE overriding BEFORE |
21 |
|
|
and AFTER. |
22 |
|
|
|
23 |
azarah |
1.67 |
12 April 2002; Martin Schlemmer <azarah@gentoo.org>: |
24 |
|
|
|
25 |
|
|
Update /etc/init.d/bootmisc to create /var/run/utmpx. This |
26 |
|
|
is needed, else /usr/bin/newgrp segfault. |
27 |
|
|
|
28 |
azarah |
1.66 |
11 April 2002; Martin Schlemmer <azarah@gentoo.org>: |
29 |
|
|
|
30 |
|
|
Update /etc/skel/.bash_profile to make it tcsh compadible. |
31 |
azarah |
1.67 |
Thanks to Väinö Järvelä for this fix. |
32 |
azarah |
1.66 |
|
33 |
azarah |
1.67 |
Update /etc/profile to also set the PS? variables if $SHELL |
34 |
|
|
is set to /bin/sh. This should make prompt colours in |
35 |
|
|
bootstrap work again. |
36 |
azarah |
1.66 |
|
37 |
azarah |
1.67 |
Move LVM stuff to checkfs to ensure that they get fscked. |
38 |
|
|
This resolves bug #1552. |
39 |
azarah |
1.66 |
|
40 |
azarah |
1.65 |
* rc-scripts 1.3.3 (5 April 2002) |
41 |
|
|
|
42 |
|
|
5 April 2002; Martin Schlemmer <azarah@gentoo.org>: |
43 |
|
|
|
44 |
|
|
Move /etc/init.d/{depscan.sh,runscript.sh,functions.sh} to /sbin. |
45 |
|
|
This is done to try and ensure system integrity. |
46 |
|
|
|
47 |
azarah |
1.64 |
1 April 2002; Martin Schlemmer <azarah@gentoo.org>: |
48 |
|
|
|
49 |
|
|
Add quotes to the "export INPUTRC=/etc/inputrc" line to resolve bug #1391. |
50 |
|
|
|
51 |
|
|
Add a error message to /etc/init.d/consolefont, resolving bug #1415. |
52 |
|
|
|
53 |
|
|
Add a bash check to the code that sets the prompt, fixing bug #1078. |
54 |
|
|
|
55 |
azarah |
1.63 |
* rc-scripts 1.3.2 (24 Mar 2002) |
56 |
|
|
|
57 |
azarah |
1.61 |
24 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
58 |
|
|
|
59 |
|
|
Resolve bug #1274. Updated /etc/init.d/hostname and /etc/init.d/bootmisc |
60 |
|
|
for this. |
61 |
|
|
|
62 |
|
|
With the "before" and "after" stuff, recursion levels was getting too high, |
63 |
|
|
and with some cases, things just plain did not work as it should. Reworked |
64 |
|
|
things to to lower the levels of recursion and get the order right. Updated |
65 |
|
|
/etc/init.d/runscript.sh for this. |
66 |
|
|
|
67 |
|
|
Fixed a problem in /sbin/rc and /etc/init.d/runscript.sh where |
68 |
|
|
${svcdir}/softlevel did not always exist, but runscript.sh tried to open it. |
69 |
|
|
|
70 |
|
|
Enhance --quiet support. Updated /etc/init.d/functions.sh for this. |
71 |
|
|
|
72 |
|
|
Remove /etc/pwdb.conf, as pwdb already install a copy of this. |
73 |
|
|
|
74 |
|
|
Remove /etc/pam.d/{rexec,rlogin,rsh} as pam already install this. |
75 |
|
|
|
76 |
azarah |
1.62 |
Added $INPUTRC to /etc/profile, since too many people keep on bugging me, |
77 |
|
|
and it seems it has fallen now to my discression. |
78 |
|
|
|
79 |
drobbins |
1.59 |
* rc-scripts 1.3.1 (23 Mar 2002) |
80 |
|
|
|
81 |
drobbins |
1.60 |
23 March 2002; Daniel Robbins <drobbins@gentoo.org>: init.d/net.eth0: fix for |
82 |
|
|
DHCP lease release from Jim Nutt. |
83 |
|
|
|
84 |
|
|
23 March 2002; Daniel Robbins <drobbins@gentoo.org>: rolling a new release |
85 |
|
|
since there are a lot of important bug fixes in here that are needed. |
86 |
drobbins |
1.59 |
|
87 |
azarah |
1.58 |
23 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
88 |
|
|
|
89 |
|
|
Resolve bug #1292. |
90 |
|
|
|
91 |
|
|
Remove the extra 'depmod -a' in /etc/init.d/modules, thanks to |
92 |
|
|
Spidler. |
93 |
|
|
|
94 |
azarah |
1.57 |
21 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
95 |
|
|
|
96 |
|
|
Update /sbin/rc to fix a 'cat mounts' instead of the correct |
97 |
|
|
version, 'cat /proc/mounts'. |
98 |
|
|
|
99 |
azarah |
1.56 |
19 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
100 |
|
|
|
101 |
|
|
Add initial support for the --quiet flag that suppress output. |
102 |
|
|
|
103 |
azarah |
1.55 |
18 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
104 |
|
|
|
105 |
|
|
Remove the 'try' from 'try /etc/init.d/depscan.sh' in /sbin/rc |
106 |
|
|
as not all errors by depscan.sh is critical. It should be |
107 |
|
|
reworked to do better error handeling. |
108 |
|
|
|
109 |
azarah |
1.54 |
14 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
110 |
|
|
|
111 |
|
|
Fix the GID and UID of nobody and nogroup in /etc/passwd and |
112 |
|
|
/etc/group to match those of Debian, FBSD and others. Thanks |
113 |
|
|
to those who reported it, and Woodchip for looking up the |
114 |
|
|
proper values. |
115 |
|
|
|
116 |
|
|
Update /etc/init.d/net.eth0 to properly down DHCP interfaces. |
117 |
|
|
This resolves bug #1150, thanks to Paul Fleischer. |
118 |
|
|
|
119 |
azarah |
1.53 |
11 March 2002; Martin Schlemmer <azarah@gentoo.org>: |
120 |
|
|
|
121 |
|
|
Updated /etc/init.d/functions.sh not to use /usr/bin/basename, |
122 |
|
|
as some users have /usr on seperate partition which is not |
123 |
|
|
mounted when depscan.sh is run the first time. |
124 |
|
|
|
125 |
|
|
Updated the checking for more than one service providing the |
126 |
|
|
same virtual function in /etc/init.d/depscan.sh. It should |
127 |
|
|
be working now, and this also fix a problem that when there is no |
128 |
|
|
service providing a virtual, counter was used uninitialized. |
129 |
|
|
|
130 |
azarah |
1.52 |
* rc-scripts 1.3.0 (10 March 2002) |
131 |
|
|
|
132 |
|
|
10 March 2002; Martin Schlemmer <azarah@gentoo.org>: Resolved |
133 |
|
|
bug #1021; updated /etc/init.d/consolefont for this. |
134 |
|
|
|
135 |
|
|
Resolved bug #1029; updated /etc/init.d/net.eth0 for this. |
136 |
|
|
|
137 |
|
|
Resolved bug #990; updated /etc/init.d/net.eth0, /etc/init.d/netmount |
138 |
|
|
and /etc/init.d/localmount for this. |
139 |
|
|
|
140 |
|
|
Lots of form/syntax cleanups, most things should be more |
141 |
|
|
consistant now. Fixed fail detection/return values of lots of |
142 |
|
|
scripts. |
143 |
|
|
|
144 |
|
|
Lots of cleanup/fixes in the three main scripts behind our |
145 |
|
|
rc-system, /sbin/rc, /etc/init.d/depscan.sh, /etc/init.d/runscript.sh |
146 |
|
|
|
147 |
|
|
Fix a bug regarding a invalid $PATH for portage if /etc/init.d/functions.sh |
148 |
|
|
is sourced in a ebuild. |
149 |
|
|
|
150 |
|
|
Fix a bug that our rc-script wrapper introduced: Global variables |
151 |
|
|
in scripts no longer worked. Updated /etc/init.d/runscript.sh for |
152 |
|
|
this. |
153 |
|
|
|
154 |
|
|
Implemented more error checking for the main startup code in /sbin/rc. |
155 |
|
|
Also fixed try() for mounting /proc (maybe all mount commands). |
156 |
|
|
The function worked fine in a simulated test, but in real life failed |
157 |
|
|
to detect a error when mounting /proc (remember to thank Grant for |
158 |
|
|
his UserMode ebuilds, and Guide). |
159 |
|
|
|
160 |
azarah |
1.51 |
* rc-scripts 1.2.9 (6 March 2002) |
161 |
|
|
|
162 |
|
|
6 March 2002; Martin Schlemmer <azarah@gentoo.org>: General form |
163 |
|
|
updates and some piping fixes. |
164 |
|
|
|
165 |
|
|
Updated /etc/inittab, /etc/init.d/xdm and /etc/X11/startDM.sh |
166 |
|
|
to fix a problem where startDM.sh would be respawned repeatedly |
167 |
|
|
if xdm was not in the default runlevel. |
168 |
drobbins |
1.6 |
|
169 |
azarah |
1.49 |
* rc-scripts 1.2.8 (4 March 2002) |
170 |
|
|
|
171 |
|
|
4 March 2002; Martin Schlemmer <azarah@gentoo.org>: add /etc/init.d/xdm, |
172 |
|
|
/etc/X11/startDM.sh and updated /etc/inittab to fix the "dead key" |
173 |
|
|
problem we had with xdm/gdm/kdm. We should move them to the |
174 |
|
|
xfree ebuild later on when things settles down. |
175 |
|
|
|
176 |
|
|
Added some sanity checks to /sbin/rc, /etc/init.d/runscripts.sh. |
177 |
|
|
|
178 |
|
|
Added a basic $PATH to /etc/init.d/functions.sh to fix a problem |
179 |
|
|
where we had a invalid $PATH on boot in some cases. |
180 |
|
|
|
181 |
azarah |
1.50 |
Updated /etc/init.d/keymap and /etc/init.d/consolefont to work with |
182 |
|
|
the new sys-apps/kbd package. |
183 |
|
|
|
184 |
azarah |
1.48 |
* rc-scripts 1.2.7 (3 March 2002) |
185 |
|
|
|
186 |
azarah |
1.47 |
3 March 2002; Martin Schlemmer <azarah@gentoo.org>: fixed the problem |
187 |
|
|
of rc-scripts trying to start/stop a service multiple times if it |
188 |
|
|
fails to do so. Updated /etc/init.d/runscript.sh and /sbin/rc for |
189 |
|
|
this. |
190 |
|
|
|
191 |
|
|
Fixing some variable declarations in /etc/init.d/runscript.sh caused |
192 |
|
|
/etc/init.d/net.lo to fail on stop ($IFACE was set invalid). Fixed |
193 |
|
|
this. |
194 |
|
|
|
195 |
|
|
Added caching of the "depend() { need foo; } " lines, and updated |
196 |
|
|
/etc/init.d/depscan.sh to touch the actual files less. This should |
197 |
|
|
speedup dependancy caching a lot, especially on slow machines. |
198 |
azarah |
1.48 |
|
199 |
|
|
Updated /etc/passwd to have users with no shell defined, use /bin/false |
200 |
|
|
for security. |
201 |
|
|
|
202 |
|
|
Update /etc/fstab to mention /dev/shm since we dont mount it anymore. |
203 |
azarah |
1.47 |
|
204 |
|
|
1 March 2002; Martin Schlemmer <azarah@gentoo.org>: added a wrapper for |
205 |
azarah |
1.46 |
sourcing the rc-scripts to eliminate syntax errors. Thanks to |
206 |
|
|
Karl Trygve Kalleberg (aka karltk) for the idea. Updated |
207 |
|
|
/etc/init.d/depscan.sh, /etc/init.d/functions.sh and |
208 |
|
|
/etc/init.d/runscript.sh for this (added wrap_rcscript() function). |
209 |
|
|
|
210 |
|
|
Removed stopping of dependant services that have current service as |
211 |
|
|
a 'use'dependancy ... should be less confusing now. |
212 |
|
|
Updated /etc/init.d/runscript.sh for this. |
213 |
|
|
|
214 |
azarah |
1.45 |
28 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: add /etc/conf.d/local.start |
215 |
|
|
and /etc/conf.d/local.stop for adding any misc programs to startup. This |
216 |
|
|
should pretty much have /etc/init.d/ static, except for baselayout updates, |
217 |
|
|
etc. |
218 |
|
|
|
219 |
azarah |
1.43 |
27 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: in some wierd cases, |
220 |
azarah |
1.44 |
a redundent /dev/.devfsd on a unmounted /dev can cause problems. Fixed |
221 |
|
|
this in /sbin/rc. |
222 |
|
|
|
223 |
|
|
Added the patches from Grant Goodyear (aka g2boojum) to enable us to |
224 |
|
|
use a ramdisk to store the contents of ${svcdir}. Updated /sbin/rc, |
225 |
|
|
/etc/init.d/functions.sh and /etc/init.d/checkroot for this. |
226 |
azarah |
1.43 |
|
227 |
azarah |
1.41 |
26 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: fix my brain dead |
228 |
|
|
update of the 25th. It really should keep "gentoo=nodevfs" in mind. |
229 |
|
|
Also added 'get_bootparam()' to help in retrieving kernel options. |
230 |
|
|
Updated /etc/init.d/functions.sh, /etc/init.d/checkroot and /sbin/rc |
231 |
|
|
for this. |
232 |
|
|
|
233 |
|
|
Updated /etc/init.d/consolefont to work without devfs as well. |
234 |
|
|
|
235 |
azarah |
1.42 |
When rebooting or shutting down, a service should not fail to stop |
236 |
|
|
if a service it depends on, fails. Updated /etc/init.d/runscript.sh |
237 |
|
|
for this. |
238 |
|
|
|
239 |
azarah |
1.40 |
25 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: added a check if |
240 |
|
|
/dev is mounted when creating entries for /etc/mtab. This should solve a |
241 |
|
|
invalid entry or /dev being mounted even with 'gentoo=nodevfs' option. |
242 |
|
|
Updated /etc/init.d/checkroot for this. |
243 |
|
|
|
244 |
drobbins |
1.39 |
17 Feb 2002: Daniel Robbins <drobbins@gentoo.org>: Made "xfs" the default |
245 |
|
|
filesystem in /etc/fstab (from ReiserFS) and removed "notail" option (it's |
246 |
|
|
just in a comment now) |
247 |
|
|
|
248 |
|
|
17 Feb 2002: Martin Schlemmer (azarah@gentoo.org): more fixes to 'after' and |
249 |
|
|
'before', updated /etc/init.d/runscript.sh for this. This should fix |
250 |
|
|
services not getting started in the correct order in a tight loop, services |
251 |
|
|
getting stopped out of order, and some other sanity checks. Updated |
252 |
|
|
rc-script.sh for updated help. |
253 |
|
|
|
254 |
|
|
15 Feb 2002: Martin Schlemmer (azarah@gentoo.org): update /etc/profile to |
255 |
|
|
resolve bug #588. Reimplemented things a bit, and added the 'after' type. |
256 |
|
|
'before' and 'after' will only work currently for a change of runlevel. |
257 |
|
|
Updated /etc/init.d/depscan.sh, /etc/init.d/runscript.sh and /sbin/rc for it. |
258 |
azarah |
1.36 |
|
259 |
drobbins |
1.39 |
13 Feb 2002: Martin Schlemmer (azarah@gentoo.org): add some more entries to |
260 |
|
|
/etc/devfsd.conf to make alsa users life easier ... thanks Tod. |
261 |
|
|
|
262 |
|
|
12 Feb 2002: Martin Schlemmer (azarah@gentoo.org): Some more cleanups to |
263 |
|
|
/etc/init.d/depscan.sh and /etc/init.d/runscript.sh. |
264 |
azarah |
1.36 |
|
265 |
|
|
Fixed some services not starting again when restarting a service. |
266 |
|
|
Seems simple is still the best way. |
267 |
|
|
|
268 |
|
|
Fixed some other problems created with feature additions and cleanups. |
269 |
|
|
|
270 |
drobbins |
1.39 |
11 Feb 2002: Martin Schlemmer (azarah@gentoo.org): General cleanups to |
271 |
|
|
/etc/init.d/depscan.sh and /etc/init.d/runscript.sh. |
272 |
azarah |
1.36 |
|
273 |
|
|
Added 'before *' to /etc/init.d/checkroot to make sure it gets |
274 |
|
|
started first. |
275 |
|
|
|
276 |
|
|
Added 'use *' to /etc/init.d/local to make sure it gets started |
277 |
|
|
last. |
278 |
|
|
|
279 |
|
|
10 Feb 2002: Martin Schlemmer (azarah@gentoo.org): Fixed /sbin/rc |
280 |
|
|
to stop a service on change of runlevel if it is in 'use' by |
281 |
|
|
another service. |
282 |
|
|
|
283 |
|
|
Added the 'provide' depend type for creating virtual services. |
284 |
|
|
Updated /etc/init.d/depscan.sh for this. |
285 |
|
|
|
286 |
|
|
Added the 'before' depend type. This is more for changing the |
287 |
|
|
order services start in. Updated /etc/init.d/depscan.sh and |
288 |
|
|
/etc/init.d/functions.sh for this. |
289 |
|
|
|
290 |
|
|
Updated /etc/init.d/depscan.sh to work with '*' as argument for |
291 |
|
|
dependancy types. This can be used with 'use' and 'before' to |
292 |
|
|
start a script last or first respectively. |
293 |
|
|
|
294 |
|
|
Added save_options() and get_options() to /etc/init.d/functions.sh |
295 |
|
|
for saving misc settings between startup/shutdown. Updated |
296 |
|
|
/etc/init.d/net.eth0 to use these and properly down virtual |
297 |
|
|
interfaces. |
298 |
|
|
|
299 |
|
|
6 Feb 2002: Martin Schlemmer (azarah@gentoo.org): updated both |
300 |
|
|
/etc/init.d/bootmisc and /etc/init.d/keymaps to be quiet on no |
301 |
|
|
errors. |
302 |
|
|
|
303 |
|
|
* rc-scripts 1.2.6 (6 Feb 2002) |
304 |
|
|
|
305 |
azarah |
1.35 |
2 Feb 2002: Martin Schlemmer (azarah@gentoo.org): updated /etc/net.eth0 |
306 |
|
|
to specify the gateway device via the $gateway variable (something like |
307 |
|
|
gateway="eth0/192.168.0.1"). |
308 |
|
|
|
309 |
azarah |
1.34 |
2 Feb 2002: Martin Schlemmer (azarah@gentoo.org): added rc-script |
310 |
|
|
/etc/init.d/numlock, for enabling numlock at boot. |
311 |
|
|
|
312 |
azarah |
1.33 |
29 Jan 2002: Martin Schlemmer (azarah@gentoo.org): hopefully the |
313 |
|
|
last fix to /etc/init.d/netmount to umount cleanly. This fix |
314 |
|
|
implements a retry if not successful the first time, and will |
315 |
|
|
kill processess using the mount. Also small type-o fix to |
316 |
|
|
/etc/init.d/halt.sh. |
317 |
|
|
|
318 |
woodchip |
1.32 |
27 Jan 2002: Donny Davies (woodchip@gentoo.org): security fix to |
319 |
|
|
/etc/pam.d/sshd,login,chsh: added pam_shells.so to the stack. |
320 |
|
|
Fixed /etc/passwd,group for user/group mysql. |
321 |
|
|
|
322 |
azarah |
1.31 |
27 Jan 2002: Martin Schlemmer (azarah@gentoo.org): added charset |
323 |
|
|
map file support to /etc/init.d/consolefont and the setting to |
324 |
|
|
/etc/rc.conf. |
325 |
|
|
|
326 |
azarah |
1.30 |
25 Jan 2002: Martin Schlemmer (azarah@gentoo.org): fixed dircolors |
327 |
|
|
in skel files to support both versions of dircolors. |
328 |
|
|
|
329 |
azarah |
1.28 |
23 Jan 2002: Martin Schlemmer (azarah@gentoo.org): fixed bug |
330 |
azarah |
1.31 |
in the restart stuff of /etc/init.d/runscript.sh that caused |
331 |
|
|
a restart of a 'net' service not to restart services again |
332 |
|
|
that depended on it. |
333 |
azarah |
1.28 |
|
334 |
azarah |
1.27 |
* rc-scripts 1.2.5 (20 Jan 2002) |
335 |
|
|
|
336 |
azarah |
1.26 |
20 Jan 2002: Martin Schlemmer (azarah@gentoo.org): updated |
337 |
|
|
/etc/init.d/net.eth0 to 'use' pcmcia. |
338 |
|
|
|
339 |
azarah |
1.25 |
8 Jan 2002: Martin Schlemmer (azarah@gentoo.org): added '--sh' to |
340 |
|
|
the dircolors command in /etc/skel/.bash_profile to handle cases |
341 |
|
|
where bash do not export $SHELL. |
342 |
|
|
|
343 |
|
|
6 Jan 2002: Martin Schlemmer (azarah@gentoo.org): updated |
344 |
|
|
/etc/init.d/runscripts.sh, /etc/init.d/net.eth0, /etc/conf.d/net and |
345 |
|
|
removed /etc/init.d/net.eth0-dhcp to reflect a new 'bsd-ish' config |
346 |
|
|
scheme for the net.eth* scripts. |
347 |
|
|
|
348 |
woodchip |
1.24 |
6 Jan 2002: Donny Davies (woodchip@gentoo.org): Removed email address |
349 |
|
|
from manpages; no need for that.. |
350 |
azarah |
1.25 |
|
351 |
|
|
5 Jan 2002: Martin Schlemmer (azarah@gentoo.org): fix type-o in |
352 |
|
|
/etc/devfsd.conf; had 'dvd' in the cdrw stuff. |
353 |
woodchip |
1.24 |
|
354 |
drobbins |
1.23 |
* rc-scripts 1.2.4 (30 Dec 2001) |
355 |
|
|
|
356 |
|
|
30 Dec 2001: Daniel Robbins (drobbins@gentoo.org): Changed default umask |
357 |
|
|
back to 022 as it should be. |
358 |
|
|
|
359 |
azarah |
1.22 |
30 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Updated |
360 |
|
|
/etc/init.d/checkfs to return 0 if the fs was successfully repaired. |
361 |
|
|
|
362 |
woodchip |
1.21 |
29 Dec 2001; Donny Davies (woodchip@gentoo.org): |
363 |
|
|
sort -t: -k3,3 -n /etc/passwd,group. Ahhhh :)) |
364 |
|
|
|
365 |
azarah |
1.20 |
28 Dec 2001; Martin Schlemmer (azarah@gentoo.org); Updated |
366 |
|
|
/etc/init.d/depscan.sh to store info about missing dependancies of |
367 |
|
|
type 'need' in ${svcdir}/broken. Also updated /etc/init.d/runscript.sh |
368 |
|
|
to use this when starting a script ('need' dependancies is critical for |
369 |
|
|
startup). Added the broken() function to /etc/init.d/runscript.sh |
370 |
|
|
to list the missing dependancies. |
371 |
|
|
|
372 |
|
|
Updated /etc/init.d/runscript.sh for svc_start() to have better error |
373 |
|
|
checking. |
374 |
|
|
|
375 |
|
|
Updated /etc/init.d/functions.sh with ewend(), which is the same as |
376 |
|
|
eend(), but print a warning on error, not a error. Updated |
377 |
|
|
/etc/init.d/checkroot and /etc/init.d/checkfs to use this function. |
378 |
|
|
|
379 |
|
|
27 Dec 2001; Martin Schlemmer (azarah@gentoo.org); Update /sbin/runscript.c |
380 |
|
|
to run /etc/init.d/rc-help.sh if no arguments is passed to a rc-script. |
381 |
|
|
|
382 |
|
|
Added /etc/init.d/rc-help.sh, simple script that prints out help for |
383 |
|
|
the rc-scripts. |
384 |
|
|
|
385 |
azarah |
1.19 |
25 Dec 2001; Martin Schlemmer (azarah@gentoo.org); Update |
386 |
|
|
/etc/init.d/shutdown.sh and /etc/init.d/reboot.sh not to force the |
387 |
|
|
halt and reboot. This fixes a problem where / was not unmounted |
388 |
|
|
properly in some cases. |
389 |
|
|
|
390 |
|
|
24 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Move $svcdir to |
391 |
|
|
to /etc/init.d/functions.sh, and update /etc/init.d/runscript.sh and |
392 |
|
|
/etc/init.d/depscan.sh for this |
393 |
|
|
|
394 |
|
|
Modified /etc/init.d/runscript.sh to also restart the services that |
395 |
|
|
depend on a service if that service is restarted. Enhanced the |
396 |
|
|
restart function to be able to have custom restart() functions in |
397 |
|
|
rc-scripts. The custom restart() have to use svc_stop() and |
398 |
|
|
svc_start() to restart the service. |
399 |
|
|
|
400 |
|
|
Add a pause function to /etc/init.d/runscript.sh. It will basically |
401 |
|
|
stop a service without stopping the services that depends on that |
402 |
|
|
service. |
403 |
drobbins |
1.23 |
|
404 |
|
|
Add a pause function to /etc/init.d/runscript.sh. It will basically stop a |
405 |
|
|
service without stopping the services that depends on that service. |
406 |
azarah |
1.19 |
|
407 |
|
|
* rc-scripts 1.2.3 (18 Dec 2001) |
408 |
|
|
|
409 |
|
|
16 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Moved the stuff from |
410 |
|
|
/sbin/init (old) to /sbin/rc (basically drop the init wrapper we used). |
411 |
|
|
|
412 |
|
|
Some cleanups: take out the shm resize comment; |
413 |
|
|
|
414 |
|
|
remove the $wrongmount; |
415 |
|
|
|
416 |
|
|
remove the mountshm() function and insert it directly |
417 |
|
|
where needed; |
418 |
|
|
|
419 |
|
|
remove the setting of $PATH as /sbin/init already do |
420 |
|
|
this for us. |
421 |
|
|
|
422 |
|
|
Added the if statement to detect if it is the first time the 'boot' |
423 |
|
|
runlevel is executed (if [ "$RUNLEVEL" = "S" ] && [ "$argv1" = "boot" ]). |
424 |
|
|
$RUNLEVEL is a env var set by /sbin/init. |
425 |
|
|
|
426 |
|
|
Also added functionality to detect if the kernel have DEVFS support |
427 |
|
|
compiled in; seems new users thinks devfs is unstable and as they do |
428 |
|
|
not always read the docs, it does not get compiled in ;/ Should |
429 |
|
|
make live for us a bit easier. |
430 |
|
|
|
431 |
|
|
14 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Fixed /sbin/rc to kill |
432 |
|
|
a cosmetic bug in the part that stops all the unneeded services. |
433 |
|
|
|
434 |
woodchip |
1.16 |
* rc-scripts 1.2.2 (8 Dec 2001) |
435 |
|
|
|
436 |
azarah |
1.18 |
10 Dec 2001; Added a localhost entry in /etc/hosts. |
437 |
|
|
|
438 |
woodchip |
1.16 |
8 Dec 2001; Donny Davies (woodchip@gentoo.org): Added start-stop-daemon.c |
439 |
|
|
to rc-scripts/sbin source. Moved rc-scripts/init.d/runscript.c to |
440 |
|
|
rc-scripts/sbin/runscript.c. Added manpage for start-stop-daemon. |
441 |
|
|
Start-stop-daemon is moved here from sysvinit by the way. There is stuff |
442 |
|
|
in this ChangeLog that needs to be removed! Like the changes to hosts, |
443 |
|
|
profile. /etc/{passwd,group} have minor UID and GID type fixes for |
444 |
woodchip |
1.17 |
users ftp, postgres, xfs. Tweaked tarball.sh to not include CVS |
445 |
|
|
directories. |
446 |
woodchip |
1.16 |
|
447 |
woodchip |
1.13 |
29 Nov 2001; Donny Davies (woodchip@gentoo.org): Added a man directory |
448 |
|
|
to rc-scripts. Checked in two manpages there, one for modules.autoload.5 |
449 |
woodchip |
1.14 |
and one for update-modules.8. These were adapted from Debian. Updated |
450 |
|
|
tarball.sh to include the new man directory. Updated baselayout to install |
451 |
|
|
these manpages. Slightly tweak the /etc/modules.autoload comments. |
452 |
woodchip |
1.13 |
|
453 |
drobbins |
1.15 |
28 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated /sbin/init |
454 |
|
|
to work correctly with the 'gentoo=nodevfs' option, and cleaned |
455 |
|
|
out old code. |
456 |
|
|
|
457 |
|
|
Updated /etc/init.d/bootmisc with additional lock files to clean. |
458 |
|
|
|
459 |
|
|
27 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated |
460 |
|
|
/etc/init.d/depscan.sh for a virtual 'use' depend, called 'logger' |
461 |
|
|
that can be used for services that needs to have a logger started |
462 |
|
|
before they are started. Updated /etc/conf.d/basic with $SYSLOGGER |
463 |
|
|
that is used to define what loggers the 'logger' depend represent. |
464 |
|
|
|
465 |
|
|
26 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated |
466 |
|
|
/etc/passwd and /etc/group with minor fixes to pass pwck and grpck. |
467 |
|
|
|
468 |
|
|
25 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Changed umask in |
469 |
|
|
/etc/profile for the user to 077 for security. |
470 |
|
|
|
471 |
|
|
Added a stop() function to /etc/init.d/clock. Also removed uneeded |
472 |
|
|
'source /etc/rc.conf' line. |
473 |
|
|
|
474 |
|
|
Updated /etc/init.d/hostname to set the hostname to 'localhost' if |
475 |
|
|
/etc/hostname is invalid. |
476 |
|
|
|
477 |
|
|
Updated /sbin/init to move the entries in /lib/dev-state to /dev before |
478 |
|
|
running devfsd, as it did still not save settings properly. Also removed |
479 |
|
|
old /dev-state/compat stuff. |
480 |
|
|
|
481 |
drobbins |
1.12 |
25 Nov 2001; ncsd, the name service cache daemon script, has been removed |
482 |
|
|
from the default "default" runlevel. It still exists in the archive so that |
483 |
drobbins |
1.15 |
users who want/need it can add it easily. |
484 |
drobbins |
1.12 |
|
485 |
drobbins |
1.11 |
25 Nov 2001; Updated the /etc/fstab; removed usbdevfs (explicitly mounted), |
486 |
drobbins |
1.15 |
removed notail from the ext2 boot partition, other cleanups. |
487 |
drobbins |
1.11 |
|
488 |
drobbins |
1.10 |
25 Nov 2001; Fixed init.d/clock script to work in UTC mode. |
489 |
drobbins |
1.15 |
|
490 |
|
|
24 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Added /etc/devfsd.conf |
491 |
|
|
and updated /sbin/init to use a new scheme for saving /dev permissions. |
492 |
|
|
Also moved /dev-state to /lib/dev-state which is a more standard location. |
493 |
|
|
|
494 |
|
|
Fixed a ugly bug in /etc/init.d/depscan.sh. If a service depended on |
495 |
|
|
itself, calling depscan.sh or changing runlevels cause a tempory effect |
496 |
|
|
similar to a 'mini fork bomb'. Afterwards the depends was broken, and |
497 |
|
|
changing runlevels did not want to work. |
498 |
|
|
|
499 |
|
|
Updated /etc/init.d/halt.sh to terminate and display message for devfsd. |
500 |
|
|
More cosmetic than anything else, but cant hurt with the new dev-state |
501 |
|
|
scheme. |
502 |
|
|
|
503 |
|
|
Updated /sbin/init to set the console log level to 1, so that bootup |
504 |
|
|
can be much cleaner. Also updated /etc/init.d/modules not to have |
505 |
|
|
a logger in it 'use' depends, as it should not be needed anymore. |
506 |
|
|
|
507 |
|
|
Updated /sbin/rc to check if devfsd is still running between runlevel |
508 |
|
|
changes. |
509 |
|
|
|
510 |
|
|
Updated /etc/init.d/modules to run update-modules. We want to be sure |
511 |
|
|
/etc/modules.conf is updated when running depmod -a. |
512 |
|
|
|
513 |
|
|
Change ftp's uid to 21 in /etc/passwd (was the same as bind). Also |
514 |
|
|
added a entry for xfs (X Font Server) in /etc/passwd and /etc/group. |
515 |
|
|
|
516 |
|
|
Added /etc/init.d/net.ppp0, /etc/conf.d/net.ppp0 and |
517 |
|
|
/usr/lib/ppp/chat-default as part of my new pppd scripts. Also |
518 |
|
|
updated tarball.sh to handle ppp/chat-default. |
519 |
|
|
|
520 |
azarah |
1.19 |
Added /etc/skel/.bash* to make things cleaner. |
521 |
drobbins |
1.15 |
|
522 |
azarah |
1.19 |
Other minor changes. |
523 |
drobbins |
1.15 |
|
524 |
woodchip |
1.9 |
17 Nov 2001; Donny Davies (woodchip@gentoo.org): Added /etc/shells file |
525 |
|
|
to rc-scripts. Can remove it from sys-libs/shadow at the next release. |
526 |
|
|
|
527 |
drobbins |
1.8 |
* rc-scripts 1.1.8 (15 Nov 2001) |
528 |
|
|
|
529 |
|
|
16 Nov 2001; removed bogus "mountall.test" script. |
530 |
drobbins |
1.7 |
|
531 |
drobbins |
1.8 |
15 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated |
532 |
|
|
init.d/{runscript.sh,depscan.sh}, sbin/rc to the new dep being 'use' not |
533 |
|
|
'uses', as it fits better with 'need' (not 'needs'). Also removed unneeded |
534 |
|
|
for loop from init.d/depscan.sh, and other fixes. Updated names of new |
535 |
|
|
functions in init.d/runscript.sh to better sounding ones. Updated |
536 |
|
|
init.d/modules, init.d/netmount to use 'use'. Lots of other fixes/cleanups. |
537 |
|
|
Removed try() out of init.d/runscript.sh (why was this here ?). |
538 |
|
|
|
539 |
|
|
14 Nov 2001; Martin Schlemmer (azarah@gentoo.org): init.d/bootmisc: Now |
540 |
drobbins |
1.15 |
cleans /tmp. Also creates /etc/resolv.conf if it doesn't exist. |
541 |
drobbins |
1.8 |
|
542 |
drobbins |
1.15 |
init.d/hostname: Added check for a valid /etc/hostname. |
543 |
drobbins |
1.8 |
|
544 |
drobbins |
1.15 |
init.d/keymaps: Added check for valid $KEYMAP. |
545 |
drobbins |
1.8 |
|
546 |
drobbins |
1.15 |
init.d/modules: Added sysklogd, metalog, syslog-ng as 'use' deps. This |
547 |
|
|
should solve Woodchip's syslog+glue issue. We just have to change the |
548 |
|
|
console loglevel for metalog and syslog-ng (sysklogd already updated) not to |
549 |
|
|
output info and warnings, etc to the console, then boot will be much cleaner. |
550 |
|
|
Also the install guide will need changing to add the loggers to 'boot' and |
551 |
|
|
not 'default' runlevel. |
552 |
drobbins |
1.8 |
|
553 |
drobbins |
1.15 |
init.d/mountall.test: Hopefully updated to the new rc-scripts style. Is |
554 |
|
|
this really needed (I cannot see that it is used anywhere ...)? |
555 |
drobbins |
1.8 |
|
556 |
|
|
13 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated |
557 |
drobbins |
1.15 |
init.d/runscript.sh, init.d/depscan.sh and sbin/rc with a new depend called |
558 |
|
|
'uses'. It basically have the same usage as 'need', except that it do not |
559 |
|
|
start services that is not in the current and 'boot' runlevels. |
560 |
drobbins |
1.8 |
|
561 |
drobbins |
1.15 |
Updated init.d/netmount to use the 'uses' depend. |
562 |
drobbins |
1.8 |
|
563 |
|
|
11 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Fixed init.d/runscript.sh |
564 |
|
|
not to destroy the 'need' depends in /${svcdir}/need. This caused subsequent |
565 |
|
|
starting and stopping of services not to start depends. |
566 |
|
|
|
567 |
|
|
7 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Fixed a problem in sbin/rc |
568 |
|
|
where the ${svcdir}/softscripts directory got destroyed before stopping |
569 |
|
|
running services scheduled to be stopped. This with the fact that $SOFTLEVEL |
570 |
|
|
was set too early, caused the services to be stopped in the wrong order. |
571 |
|
|
|
572 |
|
|
30 Oct 2001; Martin Schlemmer (azarah@gentoo.org): Modified init.d/netmount to |
573 |
|
|
check if any network filesystems is mounted. |
574 |
|
|
|
575 |
|
|
29 Oct 2001; init.d/netmount: umount -art doesn't seem to work, so I added |
576 |
|
|
some awk and grep magic to find all remote filesystems and umount them. |
577 |
|
|
|
578 |
|
|
29 Oct 2001; Martin Schlemmer (azarah@gentoo.org): A fix for checkroot |
579 |
|
|
(missing "/"); it now actually checks the root filesystem. Also, a |
580 |
|
|
localmount cleanliness fix. |
581 |
drobbins |
1.6 |
|
582 |
|
|
* rc-scripts 1.1.7 (18 Oct 2001) |
583 |
|
|
|
584 |
|
|
[old changelog format follows] |
585 |
drobbins |
1.5 |
|
586 |
|
|
*lots of scripts; woodchip |
587 |
|
|
removed old rc5 scripts from cvs |
588 |
|
|
|
589 |
|
|
*init.d/runscript.sh; agriffis |
590 |
|
|
Added support for rc.conf and home-grown functions |
591 |
|
|
|
592 |
|
|
*init.d/modules; |
593 |
drobbins |
1.4 |
Now correctly looks at /etc/modules.autoload |
594 |
|
|
|
595 |
drobbins |
1.3 |
rc-scripts-1.1.6, released 15 Sep 2001 |
596 |
|
|
====================================== |
597 |
|
|
|
598 |
|
|
*init.d/runscript.sh, others |
599 |
|
|
Handling of "net" dependencies resolve to all net devices in |
600 |
|
|
/etc/runlevels/boot and /etc/runlevels/[curr-runlevel]. INTERFACES |
601 |
|
|
variable in /etc/rc.conf has been removed. |
602 |
|
|
|
603 |
drobbins |
1.2 |
*init.d/runscript.sh |
604 |
|
|
New "zap" option for manually resetting the state of an initscript |
605 |
|
|
to stopped. |
606 |
|
|
|
607 |
|
|
*init.d/{samba,sysklogd,sshd} |
608 |
|
|
Removed from CVS; they live in their respective packages. |
609 |
|
|
|
610 |
drobbins |
1.1 |
rc-scripts-1.1.5, released 02 Sep 2001 |
611 |
|
|
==================================== |
612 |
|
|
|
613 |
|
|
*sbin/rc-update |
614 |
|
|
New version of the rc-update command for the new initscripts. Works |
615 |
|
|
similarly to the old version, except this one updates our dependency |
616 |
|
|
cache. |
617 |
|
|
|
618 |
|
|
*init.d/functions.sh |
619 |
|
|
New and better looking informational message functions (einfo, einfon). |
620 |
|
|
Brand new message functions (ewarn). |
621 |
|
|
|
622 |
|
|
*sbin/init, init.d/checkroot |
623 |
|
|
We're going back to a /proc/mounts-based mtab symlink because it's |
624 |
|
|
just plain better. Appropriate changes made. |