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
[-- Attachment #1 --]
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.
--
Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D
FreeBSD Documentation Project /
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000718164946.Y4668>
