From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2067 invoked by uid 1002); 12 May 2003 00:01:13 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 4623 invoked from network); 12 May 2003 00:01:08 -0000 From: Martin Schlemmer Reply-To: azarah@gentoo.org To: Gentoo-Dev Cc: Daniel Robbins , Bob Johnson , Jay Pfeifer Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-6nPN9UZRcWpIKsQ0DAfC" Organization: Message-Id: <1052697634.22183.26.camel@nosferatu.lan> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4- Date: 12 May 2003 02:00:34 +0200 Subject: [gentoo-dev] baselayout-1.8.6.7 X-Archives-Salt: e0ad69d5-2ea1-4727-acfa-8ffb14b58db7 X-Archives-Hash: 916c2f5881773b721e8dece0072c3e3f --=-6nPN9UZRcWpIKsQ0DAfC Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hiya I have commited a new version of baselayout ... please test as a lot of things changed. New features/improvements to note: - Updated the dependency system to try and touch files less. For example, dependencies are calculated in runscript.sh now without the symlink method, but rather with env variables. Also, all helper scripts should be sourced only once for any series of services started, or during a runlevel change. - Supports starting services in parallel (need to set 'RC_PARALLEL_STARTUP=3D"yes"' in /etc/conf.d/rc). There are still a few issues with it, namely it do not sync messages for services in order, but I am working on that. - Lots of fixes. The main purpose of this release is speed, so I would like to get feedback on that. Also, if anything seems to behave differently than expected. please let me know. NOTE: be sure to run env-update to catch all changes! Roadmap: - Get all issues with the parallel startup resolved. First part of this will be to see if its possible to get a message system going that will output properly (and not out of order) without too much overhead. - Add bootsplash support (work already done by Jay Pfeifer and Bob Johnson). - A full (more sane) rewrite of rc-daemon.sh, and then actually getting rc-scripts to use it. - A rewrite of the networking stuff. Wout did offer to start on this, so I will check with him, and if not, at least try to get a more modular (being able to add routing, etc modules to each net.* service individually) setup going. Full ChangeLog: ------------------------------------------------------------------------- * rc-scripts 1.4.3.7 (11 May 2003) 11 May 2003; Martin Schlemmer : Too many things to remember, so here is changes of note: - More changes to gendepend.awk. This basically modifies it to not use symlinks in $svcdir/{need,use,before,after,provide} anymore, but rather create a file that can be sourced. Seems to speedup things nicely. - Add /sbin/rc-services.sh. This is basically a module to get dependency info from the new $svcdir/deptree, and some other new service functions. - Modify the whole works to *only* source all needed files once.=20 This includes /sbin/{functions.sh,rc-services.sh,rc-daemon.sh}. Also rc-services.sh will only source $svcdir/deptree once.=20 /sbin/runscript.sh is sourced more than once (actually each time a service is started or stopped, but is is cut down much). Also seems to speed things up again. - Fix a long outstanding bug in gendepend.awk that caused the 'net' dependency to not be actually used in shutdown, causing the services needing it to be stoped before net.* services. - Add the RC_PARALLEL_STARTUP variable, with schedule_service_startup() to /sbin/rc-services.sh and /etc/conf.d/rc. This is experimental parallel startup of services, and seems to work nicely. Only issues to date is that printing of messages is not synced, and a race very intermittantly that causes a service to be started when it was already scheduled. - Add a new dependency type 'parallel' that can be used to control if a service can be started in paralled or not. Possible arguments is "yes" or "no"; if it is not present, it is considered as "yes": depend() { parallel yes|no } =20 Modified cachedepend.awk, gendepend.awk and /sbin/rc-services.sh. - Fix the 'single' runlevel to actually work properly, and without a /etc/runlevels/single directory. - Remove the BOOT variable, and update /sbin/rc to set SOFTLEVEL properly. Fix /etc/init.d/{checkroot,bootmisc} to use SOFTLEVEL instead of BOOT. 08 May 2003; Martin Schlemmer : Major rework of /lib/rcscript/awk/gendepend.awk, cleaning it up nicely, and adding more sanity checks. 04 May 2003; Martin Schlemmer : Revert /etc/init.d/hostname the way it was, as it should be the user's choice if he want to have a FQDN in there or not, bug #14946. Add /etc/init.d/domainname for those that want to use it. 29 Apr 2003; Martin Schlemmer : Change the root check back the way it was, else it breaks with non bash shells; modified /etc/profile. 29 Apr 2003; Martin Schlemmer : Change test in /etc/profile for root to '[ "$EUID" -eq 0 ]', bug #20140. 27 Apr 2003; Martin Schlemmer : Add various patches from Rachel Holmes : Dropped use of 'cat' in bash scripts, '$(<$file)' is there for that purpose. Modified: =20 /etc/init.d/net.ppp0 /etc/init.d/nscd /sbin/functions.sh /sbin/rc /sbin/rc-daemon.sh /sbin/rc-envupdate.sh.bash /sbin/runscript.sh Exchanged some gratuitous use of awk for grep. Awk is a little resource hungry just for a simple test. (I [azarah] did not apply the changes to tests for 'devfs', as having 'usbdevfs' in the equation will break things). Modified /sbin/rc for this. Gentoo enforces having /proc, so uname -r is a little redundant when the information is available without an external command. Modified: /etc/init.d/modules /etc/init.d/serial /sbin/functions.sh /sbin/modules-update Changed 'id -u' commands to use $EUID in bash executed scripts, same result no extra command. Modified: /sbin/rc-envupdate.sh /sbin/rc-envupdate.sh.bash /sbin/rc-update Removed all the cat sections, and the separate echo sections. The output is _exactly_ the same, minus some spare spaces that have been removed. Fourfold speed increase in the (granted flimsy) tests I have done. Modified /sbin/rc-help.sh for this. Final remaining 'cat' commands removed, in favour of using bash's internal '$(< )' or 'echo'. Use of echo leads the way to future support for bash's i18n anyway. Modified: /sbin/rc /sbin/rc-envupdate.sh /sbin/rc-envupdate.sh.bash ---------------------------------------------------------------------- Regards, --=20 Martin Schlemmer Gentoo Linux Developer, Desktop/System Team Developer Cape Town, South Africa --=-6nPN9UZRcWpIKsQ0DAfC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA+vuQiqburzKaJYLYRAheNAJ9u6Z5X4o4DSmTB29GyOevMPf4bRACcCMHJ qsvhp+ZoYs0gSuQ3u3a+hh8= =zdSe -----END PGP SIGNATURE----- --=-6nPN9UZRcWpIKsQ0DAfC--