/[baselayout]/trunk/ChangeLog
Gentoo

Diff of /trunk/ChangeLog

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

Revision 137 Revision 216
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 2002 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 6 Aug 2002; Dan Armak <danarmak@gentoo.org>:
6
7 Correct the comments in rc.conf about the XSESSION variable: it should
8 be set to "kde-<version>" not "KDE". Closes bug #5948.
9
10 5 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:
11
12 Fix the 'Usage' line in the help to return the correct options for
13 the script (/sbin/runscript.sh). Resolve bug #6029.
14
15 3 Aug 2002; Donny Davies <woodchip@gentoo.org>:
16
17 Added UPS shutdown support for nut to halt.sh.
18 Added nut user/group as uid/gid 84.
19
20 27 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:
21
22 Updated /sbin/rc's way of checking for devfs support (now rather uses
23 awk, as it is more accurate). Closes bug #5458.
24
25 Add the Redhat/Mandrake /forcefsck and /fastboot options to our checkroot
26 and checkfs. Updated /etc/init.d/{checkroot,checkfs,halt.sh} for this.
27 Thanks goes to Chris PeBenito (bug #5570).
28
29 Changed most daemons to use /bin/false as shell. Should close bug #5388.
30
31 27 Jul 2002; Nicholas Jones <carpaski@gentoo.org>:
32
33 Added vpopmail user and group as 89:89
34
35 22 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:
36
37 Add the cyrus user to /etc/passwd. Resolves bug #4100.
38
39 Some bugfixes and speed improvements to /sbin/depscan.sh after
40 last changes.
41
42 Replace some cat/grep's in /sbin/rc-envupdate.sh with awk's to
43 get some speed improvements.
44
45 21 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:
46
47 Fix LVM support in /etc/init.d/checkfs again, thanks to help from
48 Kyle Manna <nitro@gentoo.org>.
49
50 Add software RAID support to /etc/init.d/checkfs, thanks to
51 Daniel Ahlberg <aliz@gentoo.org>.
52
53 Update the cache_depend() funtion in /sbin/depscan.sh not to
54 quit on any "}", but only on the one matching the first "{". This
55 requires wc in /bin, so baselayout should depend on
56 >=sys-apps/textutils-2.0.19-r2
57
58 Update /etc/init.d/netmount to try and detect nfs mounts that should be
59 mounted automatically on boot. This requires awk in /bin, so baselayout
60 should depend on >=sys-apps/gawk-3.1.0-r3.
61
62* rc-scripts 1.3.6 (17 Jul 2002)
63
64 17 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:
65
66 Add logging functionality to the rc-scripts, thanks to Alexander Holler,
67 bug #4037 for the basic idea. Updated /sbin/functions.sh for this.
68
69 16 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:
70
71 Add additional entries to /etc/services to support cyrus-imapd, thanks
72 to Nick Hadaway <raker@gentoo.org>.
73
74 Update /etc/init.d/consolefont to resolve bug #4968. This fixes a
75 problem with non 7bit ascii symbols.
76
77 Updated /etc/init.d/checkfs to detect if lvm is already active.
78 This should resolve bug #3613.
79
80 5 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:
81
82 Add "usb" group, gid 85. Move "sshd" user and group to 22. Move
83 "games" user and group to 35
84
85 3 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:
86
87 Update Copyright displayed at boot, thanks to Sascha Schwabbauer
88 (aka cybersystem). Updated /sbin/rc for this.
89
90 30 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:
91
92 Update /etc/skel/.bashrc to update the window title of X terminals
93 that supports it. Closes bug #4232.
94
95 26 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:
96
97 Add sshd user and group. Updated /etc/passwd and /etc/group for this.
98
99 Update /etc/inputrc to resolve bug #2599.
100
101 20 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:
102
103 Add /opt/bin to $PATH and $ROOTPATH, closing bug #3603. Modified
104 /etc/env.d/00basic for this.
105
106 Add some new daemon stop and pid detection stuff to /sbin/functions.sh.
107 Nothing official, but I spent enouth time on it not to want to loose it :)
108
109 Fixed a bug in /sbin/functions.sh that caused rc-scripts run as cron jobs
110 to give output to stderr. This was caused by a call to "stty", which when
111 run without a attatched terminal, have this effect. Basically just pipe
112 stderr to /dev/null.
113
114 5 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:
115
116 Add /usr/local/share/man to $MANPATH (/etc/env.d/00basic), resolving
117 bug #3363
118
119 26 May 2002; Martin Schlemmer <azarah@gentoo.org>:
120
121 Update /etc/init.d/netmount not to try and mount NFS filesystems
122 if portmap was not started. This is to stop "hang" problems for
123 new users who do not add portmap to the default runlevel. See
124 bug #2555.
125
126 Add the video4linux stuff to /etc/devfsd.conf. Resolves bug #2015.
127
128 19 May 2002; Martin Schlemmer <azarah@gentoo.org>:
129
130 Move $EDITOR from /etc/profile to /etc/env.d/00basic.
131
132 13 May 2002; Martin Schlemmer <azarah@gentoo.org>:
133
134 Change the homes of user "at" and "cron" in /etc/passwd, as
135 they moved to /var/spool/cron...
136
137* rc-scripts 1.3.5 (12 May 2002)
138
139 12 May 2002; Martin Schlemmer <azarah@gentoo.org>:
140
141 Make slight modifications to /sbin/depscan.sh to improve speed (about
142 1 second on a celeron 633).
143
144 Finally fix /sbin/runscript.sh to properly handle interdependencies
145 between types need/use and before/after on runlevel change. I can
146 actually kick myself for previous implementations, as this fix simplifies
147 things a lot, and is almost 30 lines of code less!
148
149 Change /etc/init.d/netmount not to fail if all mounts are not mounted.
150 It rather just exit with a warning, as I think most people have like
151 me mounts that are to boxes that are not always up.
152
153 Resolve bug #2439 (should not use try with the dd command for ramdisk
154 stuff). Also increase the number of inodes used for the ramdisk to
155 fix "out of space" errors. Updated /sbin/rc for this.
156
157 10 May 2002; Martin Schlemmer <azarah@gentoo.org>:
158
159 Resolve bug #2505 ... /sbin/rc-envupdate.sh should not use
160 backup files to generate /etc/profile.env.
161
162 Resolve bug #2489 and #2175. Modified /etc/init.d/net.eth0
163 for this.
164
165 6 May 2002; Martin Schlemmer <azarah@gentoo.org>:
166
167 Fixed /sbin/rc-envupdate.sh to only use the $KDEDIR of the highest
168 /etc/env.d/ file. Same for $QTDIR.
169
170 5 May 2002; Martin Schlemmer <azarah@gentoo.org>:
171
172 Add /etc/DIR_COLORS as it is no longer shipped with fileutils,
173 and is needed for some fixes.
174
175 28 April 2002; Martin Schlemmer <azarah@gentoo.org>:
176
177 Update /etc/rc.conf to be more clear and state that you should
178 remove consolefont from startup if you do not use it. Should
179 resolve bug #2174.
180
181 26 April 2002; Donny Davies <woodchip@gentoo.org> passwd, group :
182
183 Added user/group apache with uid/gid 81.
184
185 25 April 2002; Martin Schlemmer <azarah@gentoo.org>:
186
187 Remove the "-net" from the line setting the default gateway
188 in /etc/init.d/net.eth0. Thanks to Peter W. Michaleas for
189 noting this.
190
191 24 April 2002; Donny Davies <woodchip@gentoo.org> rc.conf :
192
193 Remove NFSSERVER from rc.conf since it's now covered in /etc/conf.d/nfs
194 which is installed with the nfs-utils package. Also tidied up some
195 really old, leftover junk like the non-supported stuff from rc5.
196 Closes #1754.
197
198 23 April 2002; Martin Schlemmer <azarah@gentoo.org>:
199
200 Remove creation of /var/run/utmpx from bootmisc again. Seems
201 other people have wierd problems.
202
203* rc-scripts 1.3.4 (21 April 2002)
204
205 21 April 2002; Martin Schlemmer <azarah@gentoo.org>:
206
207 Add /sbin/rc-envupdate.sh to speedup updating of /etc/profile.env,
208 and /etc/csh.env. Update /etc/init.d/bootmisc to use this.
209
210 Implement the status commandline argument. Updated /sbin/runscript.sh
211 and /sbin/rc-help.sh for this.
212
213 Fix /sbin/depscan.sh to honour NEED and USE overriding BEFORE
214 and AFTER.
215
216 12 April 2002; Martin Schlemmer <azarah@gentoo.org>:
217
218 Update /etc/init.d/bootmisc to create /var/run/utmpx. This
219 is needed, else /usr/bin/newgrp segfault.
220
221 11 April 2002; Martin Schlemmer <azarah@gentoo.org>:
222
223 Update /etc/skel/.bash_profile to make it tcsh compadible.
224 Thanks to Väinö Järvelä for this fix.
225
226 Update /etc/profile to also set the PS? variables if $SHELL
227 is set to /bin/sh. This should make prompt colours in
228 bootstrap work again.
229
230 Move LVM stuff to checkfs to ensure that they get fscked.
231 This resolves bug #1552.
232
233* rc-scripts 1.3.3 (5 April 2002)
234
235 5 April 2002; Martin Schlemmer <azarah@gentoo.org>:
236
237 Move /etc/init.d/{depscan.sh,runscript.sh,functions.sh} to /sbin.
238 This is done to try and ensure system integrity.
239
240 1 April 2002; Martin Schlemmer <azarah@gentoo.org>:
241
242 Add quotes to the "export INPUTRC=/etc/inputrc" line to resolve bug #1391.
243
244 Add a error message to /etc/init.d/consolefont, resolving bug #1415.
245
246 Add a bash check to the code that sets the prompt, fixing bug #1078.
247
248* rc-scripts 1.3.2 (24 Mar 2002)
249
250 24 March 2002; Martin Schlemmer <azarah@gentoo.org>:
251
252 Resolve bug #1274. Updated /etc/init.d/hostname and /etc/init.d/bootmisc
253 for this.
254
255 With the "before" and "after" stuff, recursion levels was getting too high,
256 and with some cases, things just plain did not work as it should. Reworked
257 things to to lower the levels of recursion and get the order right. Updated
258 /etc/init.d/runscript.sh for this.
259
260 Fixed a problem in /sbin/rc and /etc/init.d/runscript.sh where
261 ${svcdir}/softlevel did not always exist, but runscript.sh tried to open it.
262
263 Enhance --quiet support. Updated /etc/init.d/functions.sh for this.
264
265 Remove /etc/pwdb.conf, as pwdb already install a copy of this.
266
267 Remove /etc/pam.d/{rexec,rlogin,rsh} as pam already install this.
268
269 Added $INPUTRC to /etc/profile, since too many people keep on bugging me,
270 and it seems it has fallen now to my discression.
271
272* rc-scripts 1.3.1 (23 Mar 2002)
273
274 23 March 2002; Daniel Robbins <drobbins@gentoo.org>: init.d/net.eth0: fix for
275 DHCP lease release from Jim Nutt.
276
277 23 March 2002; Daniel Robbins <drobbins@gentoo.org>: rolling a new release
278 since there are a lot of important bug fixes in here that are needed.
279
5 3 March 2002; Martin Schlemmer <azarah@gentoo.org>: fixed the problem 280 23 March 2002; Martin Schlemmer <azarah@gentoo.org>:
6 of rc-scripts trying to start/stop a service multiple times if it 281
7 fails to do so. Updated /etc/init.d/runscript.sh and /sbin/rc for 282 Resolve bug #1292.
283
284 Remove the extra 'depmod -a' in /etc/init.d/modules, thanks to
285 Spidler.
286
287 21 March 2002; Martin Schlemmer <azarah@gentoo.org>:
288
289 Update /sbin/rc to fix a 'cat mounts' instead of the correct
290 version, 'cat /proc/mounts'.
291
292 19 March 2002; Martin Schlemmer <azarah@gentoo.org>:
293
294 Add initial support for the --quiet flag that suppress output.
295
296 18 March 2002; Martin Schlemmer <azarah@gentoo.org>:
297
298 Remove the 'try' from 'try /etc/init.d/depscan.sh' in /sbin/rc
299 as not all errors by depscan.sh is critical. It should be
300 reworked to do better error handeling.
301
302 14 March 2002; Martin Schlemmer <azarah@gentoo.org>:
303
304 Fix the GID and UID of nobody and nogroup in /etc/passwd and
305 /etc/group to match those of Debian, FBSD and others. Thanks
306 to those who reported it, and Woodchip for looking up the
307 proper values.
308
309 Update /etc/init.d/net.eth0 to properly down DHCP interfaces.
310 This resolves bug #1150, thanks to Paul Fleischer.
311
312 11 March 2002; Martin Schlemmer <azarah@gentoo.org>:
313
314 Updated /etc/init.d/functions.sh not to use /usr/bin/basename,
315 as some users have /usr on seperate partition which is not
316 mounted when depscan.sh is run the first time.
317
318 Updated the checking for more than one service providing the
319 same virtual function in /etc/init.d/depscan.sh. It should
320 be working now, and this also fix a problem that when there is no
321 service providing a virtual, counter was used uninitialized.
322
323* rc-scripts 1.3.0 (10 March 2002)
324
325 10 March 2002; Martin Schlemmer <azarah@gentoo.org>:
326
327 Resolved bug #1021; updated /etc/init.d/consolefont for this.
328
329 Resolved bug #1029; updated /etc/init.d/net.eth0 for this.
330
331 Resolved bug #990; updated /etc/init.d/net.eth0, /etc/init.d/netmount
332 and /etc/init.d/localmount for this.
333
334 Lots of form/syntax cleanups, most things should be more
335 consistant now. Fixed fail detection/return values of lots of
336 scripts.
337
338 Lots of cleanup/fixes in the three main scripts behind our
339 rc-system, /sbin/rc, /etc/init.d/depscan.sh, /etc/init.d/runscript.sh
340
341 Fix a bug regarding a invalid $PATH for portage if /etc/init.d/functions.sh
342 is sourced in a ebuild.
343
344 Fix a bug that our rc-script wrapper introduced: Global variables
345 in scripts no longer worked. Updated /etc/init.d/runscript.sh for
8 this. 346 this.
347
348 Implemented more error checking for the main startup code in /sbin/rc.
349 Also fixed try() for mounting /proc (maybe all mount commands).
350 The function worked fine in a simulated test, but in real life failed
351 to detect a error when mounting /proc (remember to thank Grant for
352 his UserMode ebuilds, and Guide).
353
354* rc-scripts 1.2.9 (6 March 2002)
355
356 6 March 2002; Martin Schlemmer <azarah@gentoo.org>:
357
358 General form updates and some piping fixes.
359
360 Updated /etc/inittab, /etc/init.d/xdm and /etc/X11/startDM.sh
361 to fix a problem where startDM.sh would be respawned repeatedly
362 if xdm was not in the default runlevel.
363
364* rc-scripts 1.2.8 (4 March 2002)
365
366 4 March 2002; Martin Schlemmer <azarah@gentoo.org>:
367
368 Add /etc/init.d/xdm, /etc/X11/startDM.sh and updated /etc/inittab
369 to fix the "dead key" problem we had with xdm/gdm/kdm. We should
370 move them to the xfree ebuild later on when things settles down.
371
372 Added some sanity checks to /sbin/rc, /etc/init.d/runscripts.sh.
373
374 Added a basic $PATH to /etc/init.d/functions.sh to fix a problem
375 where we had a invalid $PATH on boot in some cases.
376
377 Updated /etc/init.d/keymap and /etc/init.d/consolefont to work with
378 the new sys-apps/kbd package.
379
380* rc-scripts 1.2.7 (3 March 2002)
381
382 3 March 2002; Martin Schlemmer <azarah@gentoo.org>:
383
384 Fixed the problem of rc-scripts trying to start/stop a service multiple
385 times if it fails to do so. Updated /etc/init.d/runscript.sh and /sbin/rc
386 for this.
9 387
10 Fixing some variable declarations in /etc/init.d/runscript.sh caused 388 Fixing some variable declarations in /etc/init.d/runscript.sh caused
11 /etc/init.d/net.lo to fail on stop ($IFACE was set invalid). Fixed 389 /etc/init.d/net.lo to fail on stop ($IFACE was set invalid). Fixed
12 this. 390 this.
13 391
14 Added caching of the "depend() { need foo; } " lines, and updated 392 Added caching of the "depend() { need foo; } " lines, and updated
15 /etc/init.d/depscan.sh to touch the actual files less. This should 393 /etc/init.d/depscan.sh to touch the actual files less. This should
16 speedup dependancy caching a lot, especially on slow machines. 394 speedup dependancy caching a lot, especially on slow machines.
17 395
396 Updated /etc/passwd to have users with no shell defined, use /bin/false
397 for security.
398
399 Update /etc/fstab to mention /dev/shm since we dont mount it anymore.
400
18 1 March 2002; Martin Schlemmer <azarah@gentoo.org>: added a wrapper for 401 1 March 2002; Martin Schlemmer <azarah@gentoo.org>:
402
19 sourcing the rc-scripts to eliminate syntax errors. Thanks to 403 Added a wrapper for sourcing the rc-scripts to eliminate syntax errors.
20 Karl Trygve Kalleberg (aka karltk) for the idea. Updated 404 Thanks to Karl Trygve Kalleberg (aka karltk) for the idea. Updated
21 /etc/init.d/depscan.sh, /etc/init.d/functions.sh and 405 /etc/init.d/depscan.sh, /etc/init.d/functions.sh and
22 /etc/init.d/runscript.sh for this (added wrap_rcscript() function). 406 /etc/init.d/runscript.sh for this (added wrap_rcscript() function).
23 407
24 Removed stopping of dependant services that have current service as 408 Removed stopping of dependant services that have current service as
25 a 'use'dependancy ... should be less confusing now. 409 a 'use'dependancy ... should be less confusing now.
26 Updated /etc/init.d/runscript.sh for this. 410 Updated /etc/init.d/runscript.sh for this.
27 411
28 28 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: add /etc/conf.d/local.start 412 28 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
29 and /etc/conf.d/local.stop for adding any misc programs to startup. This 413
30 should pretty much have /etc/init.d/ static, except for baselayout updates, 414 Add /etc/conf.d/local.start and /etc/conf.d/local.stop for adding any misc
31 etc. 415 programs to startup. This should pretty much have /etc/init.d/ static,
416 except for baselayout updates, etc.
32 417
33 27 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: in some wierd cases, 418 27 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
419
34 a redundent /dev/.devfsd on a unmounted /dev can cause problems. Fixed 420 In some wierd cases, a redundent /dev/.devfsd on a unmounted /dev can cause
35 this in /sbin/rc. 421 problems. Fixed this in /sbin/rc.
36 422
37 Added the patches from Grant Goodyear (aka g2boojum) to enable us to 423 Added the patches from Grant Goodyear (aka g2boojum) to enable us to
38 use a ramdisk to store the contents of ${svcdir}. Updated /sbin/rc, 424 use a ramdisk to store the contents of ${svcdir}. Updated /sbin/rc,
39 /etc/init.d/functions.sh and /etc/init.d/checkroot for this. 425 /etc/init.d/functions.sh and /etc/init.d/checkroot for this.
40 426
41 26 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: fix my brain dead 427 26 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
42 update of the 25th. It really should keep "gentoo=nodevfs" in mind. 428
43 Also added 'get_bootparam()' to help in retrieving kernel options. 429 Fix my brain dead update of the 25th. It really should keep
44 Updated /etc/init.d/functions.sh, /etc/init.d/checkroot and /sbin/rc 430 "gentoo=nodevfs" in mind. Also added 'get_bootparam()' to help in
45 for this. 431 retrieving kernel options. Updated /etc/init.d/functions.sh,
432 /etc/init.d/checkroot and /sbin/rc for this.
46 433
47 Updated /etc/init.d/consolefont to work without devfs as well. 434 Updated /etc/init.d/consolefont to work without devfs as well.
48 435
49 When rebooting or shutting down, a service should not fail to stop 436 When rebooting or shutting down, a service should not fail to stop
50 if a service it depends on, fails. Updated /etc/init.d/runscript.sh 437 if a service it depends on, fails. Updated /etc/init.d/runscript.sh
51 for this. 438 for this.
52 439
53 25 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: added a check if 440 25 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
54 /dev is mounted when creating entries for /etc/mtab. This should solve a 441
55 invalid entry or /dev being mounted even with 'gentoo=nodevfs' option. 442 Added a check if /dev is mounted when creating entries for /etc/mtab.
56 Updated /etc/init.d/checkroot for this. 443 This should solve a invalid entry or /dev being mounted even with
444 'gentoo=nodevfs' option. Updated /etc/init.d/checkroot for this.
57 445
58 17 Feb 2002: Daniel Robbins <drobbins@gentoo.org>: Made "xfs" the default 446 17 Feb 2002: Daniel Robbins <drobbins@gentoo.org>: Made "xfs" the default
59 filesystem in /etc/fstab (from ReiserFS) and removed "notail" option (it's 447 filesystem in /etc/fstab (from ReiserFS) and removed "notail" option (it's
60 just in a comment now) 448 just in a comment now)
61 449
62 17 Feb 2002: Martin Schlemmer (azarah@gentoo.org): more fixes to 'after' and 450 17 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
63 'before', updated /etc/init.d/runscript.sh for this. This should fix
64 services not getting started in the correct order in a tight loop, services
65 getting stopped out of order, and some other sanity checks. Updated
66 rc-script.sh for updated help.
67 451
452 Mmore fixes to 'after' and 'before', updated /etc/init.d/runscript.sh for
453 this. This should fix services not getting started in the correct order
454 in a tight loop, services getting stopped out of order, and some other
455 sanity checks. Updated rc-script.sh for updated help.
456
68 15 Feb 2002: Martin Schlemmer (azarah@gentoo.org): update /etc/profile to 457 15 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
69 resolve bug #588. Reimplemented things a bit, and added the 'after' type. 458
70 'before' and 'after' will only work currently for a change of runlevel. 459 Update /etc/profile to resolve bug #588. Reimplemented things a bit,
71 Updated /etc/init.d/depscan.sh, /etc/init.d/runscript.sh and /sbin/rc for it. 460 and added the 'after' type. 'before' and 'after' will only work currently
461 for a change of runlevel. Updated /etc/init.d/depscan.sh,
462 /etc/init.d/runscript.sh and /sbin/rc for this.
72 463
73 13 Feb 2002: Martin Schlemmer (azarah@gentoo.org): add some more entries to 464 13 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
74 /etc/devfsd.conf to make alsa users life easier ... thanks Tod. 465
466 Add some more entries to /etc/devfsd.conf to make alsa users life
467 easier ... thanks Tod.
75 468
76 12 Feb 2002: Martin Schlemmer (azarah@gentoo.org): Some more cleanups to 469 12 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
470
77 /etc/init.d/depscan.sh and /etc/init.d/runscript.sh. 471 Some more cleanups to /etc/init.d/depscan.sh and /etc/init.d/runscript.sh.
78 472
79 Fixed some services not starting again when restarting a service. 473 Fixed some services not starting again when restarting a service.
80 Seems simple is still the best way. 474 Seems simple is still the best way.
81 475
82 Fixed some other problems created with feature additions and cleanups. 476 Fixed some other problems created with feature additions and cleanups.
83 477
84 11 Feb 2002: Martin Schlemmer (azarah@gentoo.org): General cleanups to 478 11 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
479
85 /etc/init.d/depscan.sh and /etc/init.d/runscript.sh. 480 General cleanups to /etc/init.d/depscan.sh and /etc/init.d/runscript.sh.
86 481
87 Added 'before *' to /etc/init.d/checkroot to make sure it gets 482 Added 'before *' to /etc/init.d/checkroot to make sure it gets
88 started first. 483 started first.
89 484
90 Added 'use *' to /etc/init.d/local to make sure it gets started 485 Added 'use *' to /etc/init.d/local to make sure it gets started
91 last. 486 last.
92 487
93 10 Feb 2002: Martin Schlemmer (azarah@gentoo.org): Fixed /sbin/rc 488 10 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
489
94 to stop a service on change of runlevel if it is in 'use' by 490 Fixed /sbin/rc to stop a service on change of runlevel if it is
95 another service. 491 in 'use' by another service.
96 492
97 Added the 'provide' depend type for creating virtual services. 493 Added the 'provide' depend type for creating virtual services.
98 Updated /etc/init.d/depscan.sh for this. 494 Updated /etc/init.d/depscan.sh for this.
99 495
100 Added the 'before' depend type. This is more for changing the 496 Added the 'before' depend type. This is more for changing the
108 Added save_options() and get_options() to /etc/init.d/functions.sh 504 Added save_options() and get_options() to /etc/init.d/functions.sh
109 for saving misc settings between startup/shutdown. Updated 505 for saving misc settings between startup/shutdown. Updated
110 /etc/init.d/net.eth0 to use these and properly down virtual 506 /etc/init.d/net.eth0 to use these and properly down virtual
111 interfaces. 507 interfaces.
112 508
113 6 Feb 2002: Martin Schlemmer (azarah@gentoo.org): updated both 509 6 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
510
114 /etc/init.d/bootmisc and /etc/init.d/keymaps to be quiet on no 511 Updated both /etc/init.d/bootmisc and /etc/init.d/keymaps to be quiet
115 errors. 512 on no errors.
116 513
117* rc-scripts 1.2.6 (6 Feb 2002) 514* rc-scripts 1.2.6 (6 Feb 2002)
118 515
119 2 Feb 2002: Martin Schlemmer (azarah@gentoo.org): updated /etc/net.eth0
120 to specify the gateway device via the $gateway variable (something like
121 gateway="eth0/192.168.0.1").
122
123 2 Feb 2002: Martin Schlemmer (azarah@gentoo.org): added rc-script 516 2 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
517
518 Updated /etc/net.eth0 to specify the gateway device via the $gateway
519 variable (something like gateway="eth0/192.168.0.1").
520
521 2 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
522
124 /etc/init.d/numlock, for enabling numlock at boot. 523 Added rc-script /etc/init.d/numlock, for enabling numlock at boot.
125 524
126 29 Jan 2002: Martin Schlemmer (azarah@gentoo.org): hopefully the 525 29 Jan 2002: Martin Schlemmer (azarah@gentoo.org):
526
127 last fix to /etc/init.d/netmount to umount cleanly. This fix 527 Hopefully the last fix to /etc/init.d/netmount to umount cleanly. This fix
128 implements a retry if not successful the first time, and will 528 implements a retry if not successful the first time, and will kill
129 kill processess using the mount. Also small type-o fix to 529 processess using the mount. Also small type-o fix to /etc/init.d/halt.sh.
130 /etc/init.d/halt.sh.
131 530
132 27 Jan 2002: Donny Davies (woodchip@gentoo.org): security fix to 531 27 Jan 2002: Donny Davies (woodchip@gentoo.org): security fix to
133 /etc/pam.d/sshd,login,chsh: added pam_shells.so to the stack. 532 /etc/pam.d/sshd,login,chsh: added pam_shells.so to the stack.
134 Fixed /etc/passwd,group for user/group mysql. 533 Fixed /etc/passwd,group for user/group mysql.
135 534
174 /etc/init.d/checkfs to return 0 if the fs was successfully repaired. 573 /etc/init.d/checkfs to return 0 if the fs was successfully repaired.
175 574
176 29 Dec 2001; Donny Davies (woodchip@gentoo.org): 575 29 Dec 2001; Donny Davies (woodchip@gentoo.org):
177 sort -t: -k3,3 -n /etc/passwd,group. Ahhhh :)) 576 sort -t: -k3,3 -n /etc/passwd,group. Ahhhh :))
178 577
179 28 Dec 2001; Martin Schlemmer (azarah@gentoo.org); Updated 578 28 Dec 2001; Martin Schlemmer (azarah@gentoo.org);
579
180 /etc/init.d/depscan.sh to store info about missing dependancies of 580 Updated /etc/init.d/depscan.sh to store info about missing dependancies
181 type 'need' in ${svcdir}/broken. Also updated /etc/init.d/runscript.sh 581 of type 'need' in ${svcdir}/broken. Also updated /etc/init.d/runscript.sh
182 to use this when starting a script ('need' dependancies is critical for 582 to use this when starting a script ('need' dependancies is critical for
183 startup). Added the broken() function to /etc/init.d/runscript.sh 583 startup). Added the broken() function to /etc/init.d/runscript.sh
184 to list the missing dependancies. 584 to list the missing dependancies.
185 585
186 Updated /etc/init.d/runscript.sh for svc_start() to have better error 586 Updated /etc/init.d/runscript.sh for svc_start() to have better error
188 588
189 Updated /etc/init.d/functions.sh with ewend(), which is the same as 589 Updated /etc/init.d/functions.sh with ewend(), which is the same as
190 eend(), but print a warning on error, not a error. Updated 590 eend(), but print a warning on error, not a error. Updated
191 /etc/init.d/checkroot and /etc/init.d/checkfs to use this function. 591 /etc/init.d/checkroot and /etc/init.d/checkfs to use this function.
192 592
193 27 Dec 2001; Martin Schlemmer (azarah@gentoo.org); Update /sbin/runscript.c 593 27 Dec 2001; Martin Schlemmer (azarah@gentoo.org);
194 to run /etc/init.d/rc-help.sh if no arguments is passed to a rc-script. 594
595 Update /sbin/runscript.c to run /etc/init.d/rc-help.sh if no arguments
596 is passed to a rc-script.
195 597
196 Added /etc/init.d/rc-help.sh, simple script that prints out help for 598 Added /etc/init.d/rc-help.sh, simple script that prints out help for
197 the rc-scripts. 599 the rc-scripts.
198 600
199 25 Dec 2001; Martin Schlemmer (azarah@gentoo.org); Update 601 25 Dec 2001; Martin Schlemmer (azarah@gentoo.org);
602
200 /etc/init.d/shutdown.sh and /etc/init.d/reboot.sh not to force the 603 Update /etc/init.d/shutdown.sh and /etc/init.d/reboot.sh not to force the
201 halt and reboot. This fixes a problem where / was not unmounted 604 halt and reboot. This fixes a problem where / was not unmounted properly
202 properly in some cases. 605 in some cases.
203 606
204 24 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Move $svcdir to 607 24 Dec 2001; Martin Schlemmer (azarah@gentoo.org):
205 to /etc/init.d/functions.sh, and update /etc/init.d/runscript.sh and 608
206 /etc/init.d/depscan.sh for this 609 Move $svcdir to to /etc/init.d/functions.sh, and update
610 /etc/init.d/runscript.sh and /etc/init.d/depscan.sh for this
207 611
208 Modified /etc/init.d/runscript.sh to also restart the services that 612 Modified /etc/init.d/runscript.sh to also restart the services that
209 depend on a service if that service is restarted. Enhanced the 613 depend on a service if that service is restarted. Enhanced the
210 restart function to be able to have custom restart() functions in 614 restart function to be able to have custom restart() functions in
211 rc-scripts. The custom restart() have to use svc_stop() and 615 rc-scripts. The custom restart() have to use svc_stop() and
213 617
214 Add a pause function to /etc/init.d/runscript.sh. It will basically 618 Add a pause function to /etc/init.d/runscript.sh. It will basically
215 stop a service without stopping the services that depends on that 619 stop a service without stopping the services that depends on that
216 service. 620 service.
217 621
218 Add a pause function to /etc/init.d/runscript.sh. It will basically stop a 622 Add a pause function to /etc/init.d/runscript.sh. It will basically stop a
219 service without stopping the services that depends on that service. 623 service without stopping the services that depends on that service.
220 624
221* rc-scripts 1.2.3 (18 Dec 2001) 625* rc-scripts 1.2.3 (18 Dec 2001)
222 626
223 16 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Moved the stuff from 627 16 Dec 2001; Martin Schlemmer (azarah@gentoo.org):
224 /sbin/init (old) to /sbin/rc (basically drop the init wrapper we used). 628
629 Moved the stuff from /sbin/init (old) to /sbin/rc (basically drop the
630 init wrapper we used).
225 631
226 Some cleanups: take out the shm resize comment; 632 Some cleanups: take out the shm resize comment;
227 633
228 remove the $wrongmount; 634 remove the $wrongmount;
229 635
240 Also added functionality to detect if the kernel have DEVFS support 646 Also added functionality to detect if the kernel have DEVFS support
241 compiled in; seems new users thinks devfs is unstable and as they do 647 compiled in; seems new users thinks devfs is unstable and as they do
242 not always read the docs, it does not get compiled in ;/ Should 648 not always read the docs, it does not get compiled in ;/ Should
243 make live for us a bit easier. 649 make live for us a bit easier.
244 650
245 14 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Fixed /sbin/rc to kill 651 14 Dec 2001; Martin Schlemmer (azarah@gentoo.org):
246 a cosmetic bug in the part that stops all the unneeded services. 652
653 Fixed /sbin/rc to kill a cosmetic bug in the part that stops all
654 the unneeded services.
247 655
248* rc-scripts 1.2.2 (8 Dec 2001) 656* rc-scripts 1.2.2 (8 Dec 2001)
249 657
250 10 Dec 2001; Added a localhost entry in /etc/hosts. 658 10 Dec 2001; Added a localhost entry in /etc/hosts.
251 659
262 to rc-scripts. Checked in two manpages there, one for modules.autoload.5 670 to rc-scripts. Checked in two manpages there, one for modules.autoload.5
263 and one for update-modules.8. These were adapted from Debian. Updated 671 and one for update-modules.8. These were adapted from Debian. Updated
264 tarball.sh to include the new man directory. Updated baselayout to install 672 tarball.sh to include the new man directory. Updated baselayout to install
265 these manpages. Slightly tweak the /etc/modules.autoload comments. 673 these manpages. Slightly tweak the /etc/modules.autoload comments.
266 674
267 28 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated /sbin/init 675 28 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
676
268 to work correctly with the 'gentoo=nodevfs' option, and cleaned 677 Updated /sbin/init to work correctly with the 'gentoo=nodevfs' option,
269 out old code. 678 and cleaned out old code.
270 679
271 Updated /etc/init.d/bootmisc with additional lock files to clean. 680 Updated /etc/init.d/bootmisc with additional lock files to clean.
272 681
273 27 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated 682 27 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
683
274 /etc/init.d/depscan.sh for a virtual 'use' depend, called 'logger' 684 Updated /etc/init.d/depscan.sh for a virtual 'use' depend, called 'logger'
275 that can be used for services that needs to have a logger started 685 that can be used for services that needs to have a logger started before
276 before they are started. Updated /etc/conf.d/basic with $SYSLOGGER 686 they are started. Updated /etc/conf.d/basic with $SYSLOGGER that is used
277 that is used to define what loggers the 'logger' depend represent. 687 to define what loggers the 'logger' depend represent.
278 688
279 26 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated 689 26 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
690
280 /etc/passwd and /etc/group with minor fixes to pass pwck and grpck. 691 Updated /etc/passwd and /etc/group with minor fixes to pass pwck
692 and grpck.
281 693
282 25 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Changed umask in 694 25 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
695
283 /etc/profile for the user to 077 for security. 696 Changed umask in /etc/profile for the user to 077 for security.
284 697
285 Added a stop() function to /etc/init.d/clock. Also removed uneeded 698 Added a stop() function to /etc/init.d/clock. Also removed uneeded
286 'source /etc/rc.conf' line. 699 'source /etc/rc.conf' line.
287 700
288 Updated /etc/init.d/hostname to set the hostname to 'localhost' if 701 Updated /etc/init.d/hostname to set the hostname to 'localhost' if
299 25 Nov 2001; Updated the /etc/fstab; removed usbdevfs (explicitly mounted), 712 25 Nov 2001; Updated the /etc/fstab; removed usbdevfs (explicitly mounted),
300 removed notail from the ext2 boot partition, other cleanups. 713 removed notail from the ext2 boot partition, other cleanups.
301 714
302 25 Nov 2001; Fixed init.d/clock script to work in UTC mode. 715 25 Nov 2001; Fixed init.d/clock script to work in UTC mode.
303 716
304 24 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Added /etc/devfsd.conf 717 24 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
305 and updated /sbin/init to use a new scheme for saving /dev permissions. 718
719 Added /etc/devfsd.conf and updated /sbin/init to use a new scheme for saving
306 Also moved /dev-state to /lib/dev-state which is a more standard location. 720 /dev permissions. Also moved /dev-state to /lib/dev-state which is a more
721 standard location.
307 722
308 Fixed a ugly bug in /etc/init.d/depscan.sh. If a service depended on 723 Fixed a ugly bug in /etc/init.d/depscan.sh. If a service depended on
309 itself, calling depscan.sh or changing runlevels cause a tempory effect 724 itself, calling depscan.sh or changing runlevels cause a tempory effect
310 similar to a 'mini fork bomb'. Afterwards the depends was broken, and 725 similar to a 'mini fork bomb'. Afterwards the depends was broken, and
311 changing runlevels did not want to work. 726 changing runlevels did not want to work.
340 755
341* rc-scripts 1.1.8 (15 Nov 2001) 756* rc-scripts 1.1.8 (15 Nov 2001)
342 757
343 16 Nov 2001; removed bogus "mountall.test" script. 758 16 Nov 2001; removed bogus "mountall.test" script.
344 759
345 15 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated 760 15 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
761
346 init.d/{runscript.sh,depscan.sh}, sbin/rc to the new dep being 'use' not 762 Updated init.d/{runscript.sh,depscan.sh}, sbin/rc to the new dep being
347 'uses', as it fits better with 'need' (not 'needs'). Also removed unneeded 763 'use' not 'uses', as it fits better with 'need' (not 'needs'). Also
348 for loop from init.d/depscan.sh, and other fixes. Updated names of new 764 removed unneeded for loop from init.d/depscan.sh, and other fixes. Updated
349 functions in init.d/runscript.sh to better sounding ones. Updated 765 names of new functions in init.d/runscript.sh to better sounding ones.
350 init.d/modules, init.d/netmount to use 'use'. Lots of other fixes/cleanups. 766 Updated init.d/modules, init.d/netmount to use 'use'. Lots of other
767 fixes/cleanups.
768
351 Removed try() out of init.d/runscript.sh (why was this here ?). 769 Removed try() out of init.d/runscript.sh (why was this here ?).
352 770
353 14 Nov 2001; Martin Schlemmer (azarah@gentoo.org): init.d/bootmisc: Now 771 14 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
772
354 cleans /tmp. Also creates /etc/resolv.conf if it doesn't exist. 773 Now init.d/bootmisc cleans /tmp. Also creates /etc/resolv.conf if it
774 doesn't exist.
355 775
356 init.d/hostname: Added check for a valid /etc/hostname. 776 init.d/hostname: Added check for a valid /etc/hostname.
357 777
358 init.d/keymaps: Added check for valid $KEYMAP. 778 init.d/keymaps: Added check for valid $KEYMAP.
359 779
365 not 'default' runlevel. 785 not 'default' runlevel.
366 786
367 init.d/mountall.test: Hopefully updated to the new rc-scripts style. Is 787 init.d/mountall.test: Hopefully updated to the new rc-scripts style. Is
368 this really needed (I cannot see that it is used anywhere ...)? 788 this really needed (I cannot see that it is used anywhere ...)?
369 789
370 13 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Updated 790 13 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
791
371 init.d/runscript.sh, init.d/depscan.sh and sbin/rc with a new depend called 792 Updated init.d/runscript.sh, init.d/depscan.sh and sbin/rc with a new depend
372 'uses'. It basically have the same usage as 'need', except that it do not 793 called 'uses'. It basically have the same usage as 'need', except that it
373 start services that is not in the current and 'boot' runlevels. 794 do not start services that is not in the current and 'boot' runlevels.
374 795
375 Updated init.d/netmount to use the 'uses' depend. 796 Updated init.d/netmount to use the 'uses' depend.
376 797
377 11 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Fixed init.d/runscript.sh 798 11 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
378 not to destroy the 'need' depends in /${svcdir}/need. This caused subsequent 799
379 starting and stopping of services not to start depends. 800 Fixed init.d/runscript.sh not to destroy the 'need' depends in
801 /${svcdir}/need. This caused subsequent starting and stopping of services
802 not to start depends.
380 803
381 7 Nov 2001; Martin Schlemmer (azarah@gentoo.org): Fixed a problem in sbin/rc 804 7 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
382 where the ${svcdir}/softscripts directory got destroyed before stopping 805
383 running services scheduled to be stopped. This with the fact that $SOFTLEVEL 806 Fixed a problem in sbin/rc where the ${svcdir}/softscripts directory got
384 was set too early, caused the services to be stopped in the wrong order. 807 destroyed before stopping running services scheduled to be stopped. This
808 with the fact that $SOFTLEVEL was set too early, caused the services to be
809 stopped in the wrong order.
385 810
386 30 Oct 2001; Martin Schlemmer (azarah@gentoo.org): Modified init.d/netmount to 811 30 Oct 2001; Martin Schlemmer (azarah@gentoo.org):
812
387 check if any network filesystems is mounted. 813 Modified init.d/netmount to check if any network filesystems is mounted.
388 814
389 29 Oct 2001; init.d/netmount: umount -art doesn't seem to work, so I added 815 29 Oct 2001; init.d/netmount: umount -art doesn't seem to work, so I added
390 some awk and grep magic to find all remote filesystems and umount them. 816 some awk and grep magic to find all remote filesystems and umount them.
391 817
392 29 Oct 2001; Martin Schlemmer (azarah@gentoo.org): A fix for checkroot 818 29 Oct 2001; Martin Schlemmer (azarah@gentoo.org):
393 (missing "/"); it now actually checks the root filesystem. Also, a 819
394 localmount cleanliness fix. 820 A fix for checkroot (missing "/"); it now actually checks the root
821 filesystem. Also, a localmount cleanliness fix.
395 822
396* rc-scripts 1.1.7 (18 Oct 2001) 823* rc-scripts 1.1.7 (18 Oct 2001)
397 824
398[old changelog format follows] 825[old changelog format follows]
399 826
434 Brand new message functions (ewarn). 861 Brand new message functions (ewarn).
435 862
436 *sbin/init, init.d/checkroot 863 *sbin/init, init.d/checkroot
437 We're going back to a /proc/mounts-based mtab symlink because it's 864 We're going back to a /proc/mounts-based mtab symlink because it's
438 just plain better. Appropriate changes made. 865 just plain better. Appropriate changes made.
866
867# vim:expandtab

Legend:
Removed from v.137  
changed lines
  Added in v.216

  ViewVC Help
Powered by ViewVC 1.1.20