From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 21:08:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 46E0216A405 for ; Wed, 7 Mar 2007 21:08:03 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 1F26113C47E for ; Wed, 7 Mar 2007 21:08:03 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id C2452519A3 for ; Wed, 7 Mar 2007 16:08:00 -0500 (EST) Date: Wed, 7 Mar 2007 21:07:52 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070307210752.60a1db77@gumby.homeunix.com> In-Reply-To: <20070307194009.GL86959@dan.emsphone.com> References: <00f901c760ea$9461ce40$0700020a@mickey> <20070307194009.GL86959@dan.emsphone.com> X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: /usr/local/etc/rc.d startup scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 21:08:03 -0000 On Wed, 7 Mar 2007 13:40:09 -0600 Dan Nelson wrote: > In the last episode (Mar 07), Don O'Neil said: > > Are there any special naming requirements for scripts in > > /usr/local/etc/rc.d for 6.1? > > > > Someone is telling me they need to have a .sh suffix to startup > > correctly, but in past versions of FreeBSD anything you put in there > > would run as long as it was executable. > > Scripts in /usr/local/etc/rc.d are processed using a two-pass method. > New rc.subr-style scripts are detected by the presence of a > "# PROVIDE:" line, and are ordered based on dependencies listed in > REQUIRE and BEFORE lines. Old-style scripts have to end in *.sh, and > are run in alphabetical order after new scripts. Files not ending in > .sh without a PROVIDE: line are ignored. > An RcNG script that ends in .sh is sourced into the current shell rather than executed in a new one. This allows you to bring down the entire boot process. Assuming this behaviour applies to local RcNG scripts too, it's best to avoid the .sh suffix.