/usr/local/etc/rc.conf & rcorder

Oliver Eikemeier eikemeier at fillmore-labs.com
Sun May 30 15:06:57 PDT 2004


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



More information about the freebsd-current mailing list