/[baselayout]/trunk/ChangeLog
Gentoo

Diff of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.57  
changed lines
  Added in v.138

  ViewVC Help
Powered by ViewVC 1.1.20