Date: Sun, 30 Nov 2003 10:54:27 -0500 From: Richard Coleman <richardcoleman@mindspring.com> To: Andreas Klemm <andreas@FreeBSD.org> Cc: Oliver Eikemeier <eik@FreeBSD.org> Subject: Re: 5.2-BETA and related ports issues Message-ID: <3FCA12B3.7070604@mindspring.com> In-Reply-To: <20031130084800.GA64364@titan.klemm.apsfilter.org> References: <200311281553.hASFrURT003309@siralan.org> <86fzg8scn5.fsf@borg.borderworlds.dk> <20031129142508.GA46034@titan.klemm.apsfilter.org> <xzpvfp3dz28.fsf@dwp.des.no> <20031129212512.GB8768@xor.obsecurity.org> <3FC958DD.3050903@FreeBSD.org> <20031130084800.GA64364@titan.klemm.apsfilter.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FCA12B3.7070604>