Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jul 2004 19:45:13 +0300
From:      Mike Makonnen <mtm@identd.net>
To:        "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
Cc:        current@freebsd.org
Subject:   Re: rc.d/localpkg
Message-ID:  <20040727164513.GD81394@rogue.acs-et.com>
In-Reply-To: <9B5C1FCAFB35084787C21EFFFA78DD9EE490@EBE1.gc.nat>
References:  <9B5C1FCAFB35084787C21EFFFA78DD9EE490@EBE1.gc.nat>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 27, 2004 at 08:49:09AM -0400, Robin P. Blanchard wrote:
> 
> 
> I think there's something still quite awry with the new rc.d/localpkg...
> 
> >From rc(8):
>      o   The scripts within each directory are executed in lexicographical
>          order.  If a specific order is required, numbers may be used as a
>          prefix to the existing filenames, so for example 100.foo would be
>          executed before 200.bar; without the numeric prefixes the opposite
>          would be true.

This applied to old style startup scripts. This paragraph will have to
be revised.

> 
> # ls -al /usr/local/etc/rc.d/
> total 12
> drwxr-xr-x  2 root  wheel   512B Jul 27 08:41 ./
> drwxr-xr-x  6 root  wheel   512B Jul 26 14:48 ../
> -rwxr-x---  1 root  wheel   181B Mar 30 13:03 000.mysql-client.sh
> -rwxr-xr-x  1 root  wheel   423B Jul 26 17:46 01_dccifd.sh
> -r-xr-xr-x  1 root  wheel   783B Jul 26 17:42 02_clamav-clamd.sh
> -r-xr-xr-x  1 root  wheel   672B Mar 26 11:21 03_amavisd.sh
> lrwxr-xr-x  1 root  wheel    23B Jul 26 14:39 04_postfix.sh ->
> /usr/local/sbin/postfix
> 
> Yet as far as I can determine, these are not being processed in numerical
> order, with amavis being started before clamav, resulting in the system not
> coming up properly. Am I missing something here or is my pola at an all time
> low ?

It depends. All rc.d scripts are executed first according to rcorder(8). Then
old style scripts are executed in lexicographical order. Both scripts appear
to be rc.d scripts (in today's ports tree). So, if amavis should be started
after clamav, then the maintainer has to specify that in the dependency:
REQUIRE: clamd

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !



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