Making startup order static

Alex Zbyslaw xfb52 at dial.pipex.com
Mon Sep 11 02:30:47 PDT 2006


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




More information about the freebsd-questions mailing list