From owner-freebsd-current@FreeBSD.ORG Tue Jul 27 13:08:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8CAE16A4D1 for ; Tue, 27 Jul 2004 13:08:54 +0000 (GMT) Received: from mail.gactr.uga.edu (mail.gactr.uga.edu [128.192.37.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id A008C43D48 for ; Tue, 27 Jul 2004 13:08:54 +0000 (GMT) (envelope-from robin.blanchard@gactr.uga.edu) Received: from localhost (unknown [127.0.0.1]) by mail.gactr.uga.edu (Postfix) with ESMTP id 0A9EBB2582 for ; Tue, 27 Jul 2004 09:08:54 -0400 (EDT) Received: from mail.gactr.uga.edu ([127.0.0.1]) by localhost (mail.gactr.uga.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05947-01-3 for ; Tue, 27 Jul 2004 09:08:05 -0400 (EDT) Received: from EBE1.gc.nat (E2K1.gc.nat [10.10.11.21]) by mail.gactr.uga.edu (Postfix) with ESMTP id EBF6FB25E9 for ; Tue, 27 Jul 2004 08:49:09 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Jul 2004 08:49:09 -0400 Message-ID: <9B5C1FCAFB35084787C21EFFFA78DD9EE490@EBE1.gc.nat> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rc.d/localpkg Thread-Index: AcRz1TQW7GJP/QHVR02RDHp9wfIrKQAAfUlA From: "Robin P. Blanchard" To: "Alex Kapranoff" , "Mike Makonnen" X-Virus-Scanned: by amavisd-new at gactr.uga.edu cc: current@freebsd.org Subject: RE: rc.d/localpkg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2004 13:08:54 -0000 > -----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 [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