From owner-freebsd-questions@FreeBSD.ORG Sun Sep 10 22:07:13 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 26F0D16A407 for ; Sun, 10 Sep 2006 22:07:13 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from admin.mwci.net (corp.yournetplus.com [162.42.148.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4D7843D45 for ; Sun, 10 Sep 2006 22:07:12 +0000 (GMT) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (account d.hill@yournetplus.com [65.124.230.214] verified) by admin.mwci.net (CommuniGate Pro SMTP 4.1.8) with ESMTP id 44718588; Sun, 10 Sep 2006 22:07:12 +0000 Date: Sun, 10 Sep 2006 22:07:38 +0000 From: Duane Hill X-Priority: 3 (Normal) Message-ID: <1726681987.20060910220738@yournetplus.com> To: White Hat In-Reply-To: <20060910214613.29469.qmail@web34407.mail.mud.yahoo.com> References: <1405126802.20060910192630@yournetplus.com> <20060910214613.29469.qmail@web34407.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: FreeBSD Users Questions Subject: Re: Making startup order static X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Duane Hill List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Sep 2006 22:07:13 -0000 On Sunday, September 10, 2006 at 9:46:13 PM, White confabulated: > --- Duane Hill wrote: > [...] > >> I also had the same scenario with order in startup. >> That was rectified >> by setting up one script to start each of the items >> in order. > I am assuming that you removed the scripts that you > called from the rc.d directory. What transpired when > you updated a program? Assuming it created a file in > rc.d, you then had to manually remove it correct? No. I believe I used the startup script for sa-spamd as a starting point. I'm sure others could be used as a starting point as well. I'm still in the learning process. That way I could remove the ones from the rc.conf that I wanted to start in order and use the 'force' option when loading them from the custom startup script. So, as an example, if you do not have a 'spamd="YES"' in the rc.conf and you attempt to start spamd from the console, it will not start. That is because of the sa-spamd startup script. If you attempt to start spamd from the console and supply 'force start', it will start. Therefore, in my startup script I left it out of the rc.conf and used the 'force start' in my custom startup script. > I am thinking that I could create a script that would > check to see if a file existed in rc.d that I had > chosen to start manually and if so it would then > delete or move the file. However, I would have to > ensure that, that script started prior to any other > script. > It really should not be this difficult. A master file > dictating the start order of every script in rc.d > would be a cool idea. -- "This message was sent using 100% recycled electrons."