Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2000 16:49:46 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: rc.d and rc.local
Message-ID:  <20000718164946.Y4668@strontium.scientia.demon.co.uk>
In-Reply-To: <39746C8A.4B97AB56@newsguy.com>
References:  <396F6607.6C764850@newsguy.com> <20000715031452.C20004@kilt.nothing-going-on.org> <20000717214927.B4668@strontium.scientia.demon.co.uk> <39746C8A.4B97AB56@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000718164946.Y4668>