From owner-freebsd-doc Tue Jul 18 9: 2:32 2000 Delivered-To: freebsd-doc@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id B7A0E37BFB1 for ; Tue, 18 Jul 2000 09:02:25 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13EZcx-000DBk-00; Tue, 18 Jul 2000 16:49:47 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13EZcw-000HNf-00; Tue, 18 Jul 2000 16:49:46 +0100 Date: Tue, 18 Jul 2000 16:49:46 +0100 From: Ben Smithurst To: "Daniel C. Sobral" Cc: freebsd-doc@FreeBSD.org Subject: Re: rc.d and rc.local Message-ID: <20000718164946.Y4668@strontium.scientia.demon.co.uk> References: <396F6607.6C764850@newsguy.com> <20000715031452.C20004@kilt.nothing-going-on.org> <20000717214927.B4668@strontium.scientia.demon.co.uk> <39746C8A.4B97AB56@newsguy.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="B7FF+pnjRCrp0ISR" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39746C8A.4B97AB56@newsguy.com> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --B7FF+pnjRCrp0ISR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Daniel C. Sobral wrote: > * It is important to make it clear at which point in the system startup > these scripts are executed (after all other rc(8) stuff, only in > multiuser, right? If I'm wrong, all more of a reason to specify so :). ok, I'll say something to the effect that they're executed immediately after rc.local. > * A comment to the effect that the scripts are executed in ASCII order > (I don't recall how to say that nicely :) at startup, I think "lexicographical order" might be what you're after. :-) That's what strcmp(3) says, and what find(1) says about the -s option, for example. > and reverse at shutdown, Hmm? I don't see that. for dir in ${local_startup}; do if [ -d "${dir}" ]; then for script in ${dir}/*.sh; do if [ -x "${script}" ]; then (set -T trap 'exit 1' 2 ${script} stop) fi done fi done > and hint that one can prefix certain scripts with digits to enforce > their ordering. good point. --=20 Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / --B7FF+pnjRCrp0ISR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: c+BcW3U6wpd8UbibnOB6RQrm2LX9bBeE iQCVAwUBOXR8misPVtiZOS99AQGpUgP/SLJepDmtg47bDpv1ATuHRYx8gJ3zqgaO qU0ztKmhtLRH6ihz0czJdyMV5Rp28OdpS6UuzcsLIOLJkT90FsciuVq1nVAHyrD/ 235RkNAx/tkfHU2qImBlDWAcN3AJZ6bJiiyoaoBxKYPHphK8sTuizxlDTsJ0xM+f 4K5laguFg4c= =65eP -----END PGP SIGNATURE----- --B7FF+pnjRCrp0ISR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message