RE: rc.d/localpkg

From: Robin P. Blanchard <robin.blanchard_at_gactr.uga.edu>
Date: Tue, 27 Jul 2004 08:49:09 -0400
> -----Original Message-----
> From: Alex Kapranoff [mailto:kappa_at_rambler-co.ru] 
> Sent: Tuesday, July 27, 2004 7:34 AM
> To: Mike Makonnen
> Cc: Robin P. Blanchard; current_at_freebsd.org
> Subject: Re: rc.d/localpkg
> 
> * Mike Makonnen <mtm_at_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:
> > > 
> > > cd /usr/local/etc/rc.d
> > > ln -s /usr/local/sbin/postfix postfix.sh
> > 
> > That depends. If sbin/postfix is an old-style script then 
> nothing will 
> > have changed. It gets sourced same as before. If it's an 
> rc.d script 
> > then it will probably have to be patched to conform to rc.d style.
> 
> % file =postfix
> /usr/local/sbin/postfix: ELF 32-bit LSB executable, Intel 
> 80386, version 1 (FreeBSD), for FreeBSD 5.0.2, dynamically 
> linked (uses shared libs), not stripped
> 
> --
> Alex Kapranoff.
> 

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
---------------------------------------
 
Received on Tue Jul 27 2004 - 11:08:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:03 UTC