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