Date: Mon, 31 May 2004 00:06:52 +0200 From: Oliver Eikemeier <eikemeier@fillmore-labs.com> To: Nagilum <freebsd@nagilum.org> Cc: current@freebsd.org Subject: Re: /usr/local/etc/rc.conf & rcorder Message-ID: <40BA5AFC.8040109@fillmore-labs.com> In-Reply-To: <40B9FD0F.1070304@nagilum.org> References: <20040530120314.BB9CF43D31@mx1.FreeBSD.org> <40B9FD0F.1070304@nagilum.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Nagilum wrote: > [...] > However while we're at it I also would like to propose the use of > rcorder for /usr/local/etc/rc.d/. There are certain ports that use > number prefixes to try to ensure proper startup order (e.g. mysql-client > or pkgtools, see the discussion prio the introduction of rcorder for why > this is suboptimal) however as we already have a working solution for > this problem it is only matter of using it, the required change would be > minimal: > > bash-2.05b# diff -Naur bash-2.05b# diff -Naur \ > /usr/src/etc/rc.d/localdaemons /etc/rc.d/localdaemons --- > /usr/src/etc/rc.d/localdaemons Mon May 5 17:38:41 2003 > +++ localdaemons Sat Nov 1 17:11:57 2003 > @@ -29,7 +29,7 @@ > fi > for dir in ${local_startup}; do > if [ -d "${dir}" ]; then > - for script in ${dir}/*.sh; do > + for script in `rcorder ${dir}/*.sh 2>/dev/null`; do > slist="${slist}${script_name_sep}${script}" > done > > fi > > [...] Your patch will interfere with diskless booting. See PR 56736 for an alternative patch. -Oliver
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40BA5AFC.8040109>