From owner-freebsd-current@FreeBSD.ORG Sun Nov 30 03:43:19 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 5276616A4CE; Sun, 30 Nov 2003 03:43:19 -0800 (PST) Received: from postman.arcor.de (postman2.arcor-online.net [151.189.0.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FCAD43FBF; Sun, 30 Nov 2003 03:43:17 -0800 (PST) (envelope-from eik@FreeBSD.org) Received: from FreeBSD.org (p5080B477.dip.t-dialin.net [80.128.180.119]) (authenticated bits=0) by postman.arcor.de (8.12.9/8.12.9) with ESMTP id hAUBhDgk000233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Nov 2003 12:43:14 +0100 (MET) Message-ID: <3FC9D7CA.8@FreeBSD.org> Date: Sun, 30 Nov 2003 12:43:06 +0100 From: Oliver Eikemeier Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en, de 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: freebsd-current@FreeBSD.org cc: Kris Kennaway Subject: Re: 5.2-BETA and related ports issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list 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 11:43:19 -0000 Andreas Klemm wrote: > On Sun, Nov 30, 2003 at 03:41:33AM +0100, Oliver Eikemeier wrote: > >>Kris Kennaway wrote: >> >> >>>On Sat, Nov 29, 2003 at 03:33:35PM +0100, Dag-Erling Smorgrav wrote: >>> >>> >>>>Andreas Klemm writes: >>>> >>>> >>>>>I can't recommend doing it this way, since some ports I know >>>>>are writing startup scripts to /etc/rc.d :-/ >>>> >>>>That is very, very bad. I wish we had some kind of ports QA team :( >>> >>>Well, er, a number of us do essentially nothing BUT ports QA. >> >>I'm sorry if I did something disturbing, and I'm surely interested in >>ports tree QA! I know that I violate the prefix, and did that on purpose, >>see my comment in net/opendldap2[012]-server/Makefile: >> # currently the only way to participate in rcorder(8) >> >>I posted PR conf/56736: >> >>but nobody seemed to care, and I had enough construction areas that I didn't >>wanted to start a discussion about that. >> >>The point is that we might want to have some port services to start early. >>That gives the possibility to move functionality from the base system to >>ports, which I believe isn't bad. I can simply change the openldap ports so >>that they >>are nice and quiet, but IMHO that does not really solve a problem. But >>please >>correct me if my arguments are too simple-minded. > > 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 I don't care whether slapd or slurpd starts first, I even don't care when slurpd starts. I want to start ldapd early in the boot process to supports services like nss_ldap and mail. I did things differently e.g. in net/rsync, because rsync does not provide any services that base services depend on. -Oliver