From owner-freebsd-ports@FreeBSD.ORG Sun May 30 15:06:57 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1304716A4CE; Sun, 30 May 2004 15:06:57 -0700 (PDT) Received: from fillmore.dyndns.org (port-212-202-49-130.dynamic.qsc.de [212.202.49.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB0CC43D2D; Sun, 30 May 2004 15:06:56 -0700 (PDT) (envelope-from eikemeier@fillmore-labs.com) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.34 (FreeBSD)) id 1BUYSD-0001bO-El; Mon, 31 May 2004 00:06:56 +0200 Message-ID: <40BA5AFC.8040109@fillmore-labs.com> Date: Mon, 31 May 2004 00:06:52 +0200 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Nagilum References: <20040530120314.BB9CF43D31@mx1.FreeBSD.org> <40B9FD0F.1070304@nagilum.org> In-Reply-To: <40B9FD0F.1070304@nagilum.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: Danny Braniss cc: Patrick Tracanelli cc: ports@freebsd.org cc: current@freebsd.org cc: Andre Guibert de Bruet Subject: Re: /usr/local/etc/rc.conf & rcorder X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 22:06:57 -0000 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