From owner-freebsd-current@FreeBSD.ORG Wed May 26 23:25:16 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 3774016A4D0 for ; Wed, 26 May 2004 23:25:16 -0700 (PDT) Received: from fillmore.dyndns.org (port-212-202-49-130.reverse.qsc.de [212.202.49.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id D44FF43D41 for ; Wed, 26 May 2004 23:25:15 -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 1BTEJa-000H9V-Lz; Thu, 27 May 2004 08:24:33 +0200 Message-ID: <40B5899E.7030506@fillmore-labs.com> Date: Thu, 27 May 2004 08:24:30 +0200 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Bruce M Simpson References: <40B2B7D4.5040106@users.sourceforge.net> <20040525210812.9728A5D08@ptavv.es.net> <20040526181624.GB55179@empiric.dek.spc.org> In-Reply-To: <20040526181624.GB55179@empiric.dek.spc.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: freebsd-current@freebsd.org cc: Rob Subject: Re: Where to put my own startup script (/etc/rc.local ?) 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: Thu, 27 May 2004 06:25:16 -0000 Bruce M Simpson wrote: > On Tue, May 25, 2004 at 02:08:12PM -0700, Kevin Oberman wrote: > >>You can put them in /usr/local/etc/rc.d or /etc/rc.d. The former is the >>more acceptable and should be used if the startup can be run at the end >>of the startup. > > Take a look at the net-mgmt/snmptt port I just committed. This borrows from > the net/quagga port in the area of rc script placement - showing how to > place it in an appropriate location depending on OSVERSION. While putting *local* (e.g. not belonging to a port) scripts into rc.local is reasonable on -STABLE and -CURRENT, ports should *not* put scripts in /etc/rc.d. I did this once in an attempt to have OpenLDAP start early, hoping for this issue to be resolved fast with PR 56736, but I seems there is no progress on this one. Sigh. Anyway, although I believe it is legal for a user to put his own scripts into /etc/rc.d, mergemaster(8) will complain when it finds them, see PR 64476. -Oliver