From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 19:40:25 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 EB6FA16A405 for ; Wed, 7 Mar 2007 19:40:25 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id ABDBC13C474 for ; Wed, 7 Mar 2007 19:40:15 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l27Je9R2046755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 7 Mar 2007 13:40:10 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l27Je9lU046754; Wed, 7 Mar 2007 13:40:09 -0600 (CST) (envelope-from dan) Date: Wed, 7 Mar 2007 13:40:09 -0600 From: Dan Nelson To: "Don O'Neil" Message-ID: <20070307194009.GL86959@dan.emsphone.com> References: <00f901c760ea$9461ce40$0700020a@mickey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00f901c760ea$9461ce40$0700020a@mickey> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) Cc: 'FreeBSD Questions' 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 19:40:26 -0000 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. -- Dan Nelson dnelson@allantgroup.com