From owner-freebsd-questions@FreeBSD.ORG Wed Mar 10 07:17:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B1A516A4CE for ; Wed, 10 Mar 2004 07:17:45 -0800 (PST) Received: from spock.ste-land.com (spock.ste-land.com [64.32.179.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3360743D48 for ; Wed, 10 Mar 2004 07:17:45 -0800 (PST) (envelope-from ste@ste-land.com) Received: from ste-land.com (bgp377940bgs.plnfld01.nj.comcast.net [68.36.5.198]) by spock.ste-land.com (Postfix) with ESMTP id 4C67D2D24C; Wed, 10 Mar 2004 10:17:44 -0500 (EST) Message-ID: <404F3197.1000409@ste-land.com> Date: Wed, 10 Mar 2004 10:17:43 -0500 From: "Shaun T. Erickson" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Risdon References: <404E98CB.6060203@ste-land.com> <404ED077.50407@circlesquared.com> In-Reply-To: <404ED077.50407@circlesquared.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: rc script timing issues? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 15:17:45 -0000 Peter Risdon wrote: > From man 8 rc.d: > > The scripts within each directory are executed in lexicographical > order. If a specific order is required, numbers may be used as a > prefix to the existing filenames, so for example 100.foo would be > executed before 200.bar; without the numeric prefixes the opposite > would be true. > > You might be able to see this if you've installed, say, mysql-client > which uses a script in /usr/local/etc/rc.d called 000.mysql-client.sh - > the 000. forces an early startup. So I suggest you're better off moving > the scripts back to /usr/local/etc/rc.d and prefixing them with numerals > to get the startup order correct. This was exactly the solution I needed and, per your later email, I also made sure the client script runs first. -ste