From owner-freebsd-questions@FreeBSD.ORG Sun Sep 10 19:26:08 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 633C016A4CE for ; Sun, 10 Sep 2006 19:26:08 +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 AF28D43D73 for ; Sun, 10 Sep 2006 19:26:05 +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 44685670; Sun, 10 Sep 2006 19:26:05 +0000 Date: Sun, 10 Sep 2006 19:26:30 +0000 From: Duane Hill X-Priority: 3 (Normal) Message-ID: <1405126802.20060910192630@yournetplus.com> To: White Hat In-Reply-To: <20060910190209.41483.qmail@web34402.mail.mud.yahoo.com> References: <001701c6d509$09392600$2101a8c0@local.werner.st> <20060910190209.41483.qmail@web34402.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 19:26:08 -0000 On Sunday, September 10, 2006 at 7:02:09 PM, White confabulated: > --- Martin Werner wrote: >> Hi, >> >> thought about using PROVIDE and REQUIRE keywords >> (see >> /usr/local/etc/rc.d/clamav-clamd.sh resp. >> clamav-freshclam.sh >> >> Maybe you might want to have a look into "man rc" or >> "man rcorder" >> >> Cheers, >> -Martin- >> >> > FreeBSD 6.1 >> > >> > I need to keep several programs starting in a >> > particular order. >> >> > clamav-clamd >> > clamav-freshclam >> > clamsmtpd >> > saslauthd >> > dovecot >> > postfix >> > fetchmail >> >> > By default, they do not start in that order. I > have >> > modified the rc.d files to force them to start in >> > the >> > order specified above. >> < >> > The problem is that every time I update these >> > programs >> > the rc.d startup file is modified which destroys > the >> > changes I have made. This then requires me to >> > recreate >> > the modifications to force the start up order I >> > require. >> > >> > Is there anyway I can achieve this goal in a >> > simplified manner? I thought perhaps there might > be >> > something I could add to the /etc/rc.conf file; >> > however, I have not discovered it. > Martin, I don't think that you understood what I > meant. Either that or I described it incorrectly. > I did modify the rc.d files using BEFORE: and > REQUIRE:. That works just fine. The problem is if one > of those files is updated, the rc.d file is > overwritten resulting in the loss of my customization. > I therefore have to manually edit those files again. I > was trying to find someway to circumvent that > procedure. J.D. Bronson took the words from my fingers. I have a server application that needs the 5.0 compatibility loaded running on our 6.0 server. Once compat5x was installed via the port, the startup script that was placed within /usr/local/etc/rc.d had '000.' prepended to its name to ensure it was loaded before anything. I.e. 000.compat5x.sh. 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. -- "This message was sent using 100% recycled electrons."