Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jul 2004 08:49:09 -0400
From:      "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
To:        "Alex Kapranoff" <kappa@rambler-co.ru>, "Mike Makonnen" <mtm@identd.net>
Cc:        current@freebsd.org
Subject:   RE: rc.d/localpkg
Message-ID:  <9B5C1FCAFB35084787C21EFFFA78DD9EE490@EBE1.gc.nat>

next in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: Alex Kapranoff [mailto:kappa@rambler-co.ru]=20
> Sent: Tuesday, July 27, 2004 7:34 AM
> To: Mike Makonnen
> Cc: Robin P. Blanchard; current@freebsd.org
> Subject: Re: rc.d/localpkg
>=20
> * Mike Makonnen <mtm@identd.net> [July 27 2004, 11:42]:
> > On Mon, Jul 26, 2004 at 03:00:53PM -0400, Robin P. Blanchard wrote:
> > > How does this apply to beasts such as postfix which recommends:
> > >=20
> > > cd /usr/local/etc/rc.d
> > > ln -s /usr/local/sbin/postfix postfix.sh
> >=20
> > That depends. If sbin/postfix is an old-style script then=20
> nothing will=20
> > have changed. It gets sourced same as before. If it's an=20
> rc.d script=20
> > then it will probably have to be patched to conform to rc.d style.
>=20
> % file =3Dpostfix
> /usr/local/sbin/postfix: ELF 32-bit LSB executable, Intel=20
> 80386, version 1 (FreeBSD), for FreeBSD 5.0.2, dynamically=20
> linked (uses shared libs), not stripped
>=20
> --
> Alex Kapranoff.
>=20

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.

# 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 ?




---------------------------------------
Robin P. Blanchard
Systems Integration Specialist
Georgia Center for Continuing Education
fon: 706.542.2404 < > fax: 706.542.6546
---------------------------------------
=20



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