From owner-freebsd-current@FreeBSD.ORG Sun Nov 30 07:54:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9504C16A4CE; Sun, 30 Nov 2003 07:54:16 -0800 (PST) Received: from saturn.criticalmagic.com (saturn.criticalmagic.com [68.213.16.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FD8843F85; Sun, 30 Nov 2003 07:54:15 -0800 (PST) (envelope-from richardcoleman@mindspring.com) Received: from mindspring.com (titan.criticalmagic.com [68.213.16.23]) by saturn.criticalmagic.com (Postfix) with ESMTP id CD02E3BD2A; Sun, 30 Nov 2003 10:54:14 -0500 (EST) Message-ID: <3FCA12B3.7070604@mindspring.com> Date: Sun, 30 Nov 2003 10:54:27 -0500 From: Richard Coleman Organization: Critical Magic, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Klemm References: <200311281553.hASFrURT003309@siralan.org> <86fzg8scn5.fsf@borg.borderworlds.dk> <20031129142508.GA46034@titan.klemm.apsfilter.org> <20031129212512.GB8768@xor.obsecurity.org> <3FC958DD.3050903@FreeBSD.org> <20031130084800.GA64364@titan.klemm.apsfilter.org> In-Reply-To: <20031130084800.GA64364@titan.klemm.apsfilter.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Dag-Erling Smorgrav cc: Kris Kennaway cc: freebsd-current@FreeBSD.org cc: Oliver Eikemeier Subject: Re: 5.2-BETA and related ports issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: richardcoleman@mindspring.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 15:54:16 -0000 Andreas Klemm wrote: > What about simply putting a number in front of the script, > I didn't check but am really certain that we start scripts > something like this: > > cd $LOCALBASE/etc/rc.d > for i in *.sh <--- here you get an alphabetically > sort order ! > do > if [ -x $i ]; then > /bin/sh $i start > fi > done > > So this would be sufficient to start slapd before slurpd: > > /usr/local/etc/rc.d/001.slapd.sh > /usr/local/etc/rc.d/002.slurpd.sh > > or alternatively > > /usr/local/etc/rc.d/openldap-01-slapd.sh > /usr/local/etc/rc.d/openldap-02-slurpd.sh > > We already have things like: > > 000.mysql-client.sh > 000.pkgtools.sh > 000.wine.sh > 010.pgsql.sh > > > Andreas /// That works fine if you are only concerned about startup ordering for things in /usr/local/etc/rc.d. Although it would be better if we could use rcorder style dependency ordering here as well. But it doesn't help if you need a port to start earlier than something in the base. This could happen if you've replaced sendmail with postfix, and use maps from a remote database (openldap, postgresql, etc). I'm sure there are other examples as well (nss_ldap, etc). Richard Coleman richardcoleman@mindspring.com