From owner-freebsd-questions@FreeBSD.ORG Mon Mar 26 12:35:00 2007 Return-Path: X-Original-To: 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 17F6616A402 for ; Mon, 26 Mar 2007 12:35:00 +0000 (UTC) (envelope-from rick@logicmerc.com) Received: from www.logicmerc.com (logicmerc.com [69.65.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id E759413C455 for ; Mon, 26 Mar 2007 12:34:59 +0000 (UTC) (envelope-from rick@logicmerc.com) Received: from localhost (unknown [127.0.0.1]) by www.logicmerc.com (Postfix) with ESMTP id 46FDB5C30; Mon, 26 Mar 2007 06:13:19 -0600 (CST) Received: from www.logicmerc.com ([127.0.0.1]) by localhost (www.logicmerc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 68767-05; Mon, 26 Mar 2007 06:13:16 -0600 (CST) Received: from TRACKMAGIC (c-67-167-124-9.hsd1.il.comcast.net [67.167.124.9]) by www.logicmerc.com (Postfix) with ESMTP id 728785C2B; Mon, 26 Mar 2007 06:13:16 -0600 (CST) From: "Rick Apichairuk" To: "'Jack Stone'" , , Date: Mon, 26 Mar 2007 07:07:22 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: Thread-Index: Acdu4U6sQf646k28Qna1PHTgPlhecgAvae9Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Message-Id: <20070326121316.728785C2B@www.logicmerc.com> X-Virus-Scanned: amavisd-new at logicmerc.com Cc: Subject: RE: rc.d 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: Mon, 26 Mar 2007 12:35:00 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Jack Stone > Sent: Sunday, March 25, 2007 8:09 AM > To: freebsd@voidmain.net; questions@freebsd.org > Subject: RE: rc.d scripts > > >From: Tom Grove > >To: questions@freebsd.org > >Subject: rc.d scripts > >Date: Fri, 23 Mar 2007 09:15:29 -0400 > > > >Does anyone know how to make a script in /etc/rc.d run last? For instance > >I want dhclient to be the last script in /etc/rc.d/ to run. Any help is > >much appreciated. > > > >-Tom > > This may have already been answered by others, but I believe just rename the > script with a prefix of "z" for example: "zmyscript.sh" or "zzmyscript" to > make it very last beyond the first one with a "z". > > It works for me. > You might have also noticed that some ports come with number prefixed rc startup scripts. You can prefix your scripts with numbers like: 01_apache.sh 02_mysql.sh 03_pgsql.sh That way you can always adjust the exact order. Best Regards, Rick Apichairuk