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

From: Oliver Eikemeier (eikemeier_at_fillmore-labs.com)
Date: 05/31/04

  • Next message: David Xu: "Re: reboot and shutdown don't work, suspect acpi"
    Date: Mon, 31 May 2004 00:06:52 +0200
    To: Nagilum <freebsd@nagilum.org>
    
    

    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

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: David Xu: "Re: reboot and shutdown don't work, suspect acpi"