From owner-freebsd-current@FreeBSD.ORG Mon May 31 06:54:49 2004 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 7A46616A4CE; Mon, 31 May 2004 06:54:49 -0700 (PDT) Received: from ioskeha.hittite.isp.9tel.net (ioskeha.hittite.isp.9tel.net [62.62.156.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E67E443D1D; Mon, 31 May 2004 06:54:48 -0700 (PDT) (envelope-from clefevre-lists@9online.fr) Received: from pc2k (200-62-118-80.kaptech.net [80.118.62.200]) by ioskeha.hittite.isp.9tel.net (Postfix) with SMTP id A43B917B7D8; Mon, 31 May 2004 15:55:25 +0200 (CEST) Message-ID: <055201c44716$c9cffc00$7890a8c0@dyndns.org> From: "Cyrille Lefevre" To: "Nagilum" , "Danny Braniss" References: <20040530120314.BB9CF43D31@mx1.FreeBSD.org> <40B9FD0F.1070304@nagilum.org> Date: Mon, 31 May 2004 15:54:26 +0200 Organization: ACME MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: ports@freebsd.org cc: current@freebsd.org Subject: Re: /usr/local/etc/rc.conf & rcorder 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: Mon, 31 May 2004 13:54:49 -0000 "Nagilum" wrote: [snip] > I strongly support Patricks original proposal, as for the replies, this > would not interfere with your usual way of doing things, you could still > keep your ports startup options in /etc/rc.conf it would make no > difference. But give (optionally) a better separation of base and > ports. The settings may or may not be exported throught /usr/local/ to > other hosts, the decision would be up to the admin as changes to rc.conf > are (nearly) always made manually. > 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 > > > (Replace localdaemons with localpkg for newer system.) > There are certain ports (such as bacula) that would definatly profit > from this (e.g. all ports that require mysql/pgsql to be running, while > beeing started) there is still a problem, that is, mixing /etc/rc.d and /usr/local/etc/rc.d startup scripts whenever it is needed. for example, I use mimedefang, and instead of moving /usr/local/etc/rc.d/mimedefang.sh to /etc/rc.d, I restart sendmail after mimedefang has been started using a home made script in /usr/local/etc/rc.d. however, since not all local startup script have not been converted to rc.subr, it is not yet possible to do something like rcorder /etc/rc.d /usr/local/etc/rc.d from /etc/rc, but should be the target to be reached, IMHO. Cyrille Lefevre. -- home: mailto:cyrille.lefevre@laposte.net