From owner-freebsd-current@FreeBSD.ORG Tue Jul 27 16:45:23 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 D85EE16A4CE for ; Tue, 27 Jul 2004 16:45:23 +0000 (GMT) Received: from telecom.net.et (ns2.telecom.net.et [213.55.64.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC6A043D46 for ; Tue, 27 Jul 2004 16:45:21 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.65.180] (HELO pool-151-200-10-97.res.east.verizon.net) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP-TLS id 52780352; Tue, 27 Jul 2004 19:38:34 +0300 Received: from rogue.acs-et.com (localhost [127.0.0.1]) ESMTP id i6RGjXfA081553; Tue, 27 Jul 2004 19:45:41 +0300 (EAT) (envelope-from mtm@rogue.acs-et.com) Received: (from mtm@localhost) by rogue.acs-et.com (8.12.11/8.12.11/Submit) id i6RGjH4X081552; Tue, 27 Jul 2004 19:45:17 +0300 (EAT) (envelope-from mtm) Date: Tue, 27 Jul 2004 19:45:13 +0300 From: Mike Makonnen To: "Robin P. Blanchard" Message-ID: <20040727164513.GD81394@rogue.acs-et.com> References: <9B5C1FCAFB35084787C21EFFFA78DD9EE490@EBE1.gc.nat> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9B5C1FCAFB35084787C21EFFFA78DD9EE490@EBE1.gc.nat> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/5.2-CURRENT (i386) cc: Alex Kapranoff 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 16:45:24 -0000 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 !