From owner-freebsd-questions@FreeBSD.ORG Mon Sep 11 09:30:46 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 E63EB16A403 for ; Mon, 11 Sep 2006 09:30:46 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3444343D5A for ; Mon, 11 Sep 2006 09:30:44 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1GMi7n-0008T4-56; Mon, 11 Sep 2006 10:30:43 +0100 Received: from [82.41.35.166] (helo=[192.168.0.2]) by asmtp-out1.blueyonder.co.uk with esmtp (Exim 4.52) id 1GMi7m-0002VW-I9; Mon, 11 Sep 2006 10:30:42 +0100 Message-ID: <45052CC2.1040509@dial.pipex.com> Date: Mon, 11 Sep 2006 10:30:42 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: White Hat References: <20060910181136.57823.qmail@web34410.mail.mud.yahoo.com> In-Reply-To: <20060910181136.57823.qmail@web34410.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: Making startup order static 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, 11 Sep 2006 09:30:47 -0000 White Hat wrote: >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. > > You might get more informed answers if you try asking this question on the freebsd-rc@ mailing list. I believe 6.1 uses rcorder for scripts from /usr/local/etc/rc.d, in which case you might be able to create local patches in the relevant ports which added appropriate e.g. # BEFORE: # PROVIDES: # REQUIRE: lines to force the order you want. This assumes that they do not use .sh suffixed scripts and that you use cvsup rather than portsnap, which I believe would trash your local patches. --Alex