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

From: Oliver Eikemeier <eikemeier_at_fillmore-labs.com>
Date: Mon, 31 May 2004 00:06:52 +0200
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
> _at__at_ -29,7 +29,7 _at__at_
>         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
Received on Sun May 30 2004 - 13:06:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:55 UTC