Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2006 10:30:42 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        White Hat <pigskin_referee@yahoo.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Making startup order static
Message-ID:  <45052CC2.1040509@dial.pipex.com>
In-Reply-To: <20060910181136.57823.qmail@web34410.mail.mud.yahoo.com>
References:  <20060910181136.57823.qmail@web34410.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45052CC2.1040509>