/[gentoo-src]/rc-scripts/ChangeLog
Gentoo

Contents of /rc-scripts/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.52 - (show annotations) (download)
Sun Mar 10 22:57:28 2002 UTC (12 years, 6 months ago) by azarah
Branch: MAIN
Changes since 1.51: +30 -0 lines
lost of fixes

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

  ViewVC Help
Powered by ViewVC 1.1.20