From owner-freebsd-questions@FreeBSD.ORG Thu Nov 3 12:23:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 746F116A41F for ; Thu, 3 Nov 2005 12:23:57 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25FD443D45 for ; Thu, 3 Nov 2005 12:23:57 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 20723 invoked from network); 3 Nov 2005 12:23:56 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 Nov 2005 12:23:56 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 5355628441; Thu, 3 Nov 2005 07:23:56 -0500 (EST) Sender: lowell@be-well.ilk.org To: Russell Cloran References: <1130936261.22018.8.camel@localhost.localdomain> From: Lowell Gilbert Date: 03 Nov 2005 07:23:56 -0500 In-Reply-To: <1130936261.22018.8.camel@localhost.localdomain> Message-ID: <44r79x9axv.fsf@be-well.ilk.org> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: periodic scripts execution order X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 12:23:57 -0000 Russell Cloran writes: > I have a question regarding the execution order of periodic scripts. In > the default configuration, scripts in /etc/periodic/*/ are executed > before /usr/local/etc/periodic/*/, regardless of numbering. > > Surely the sensible thing to do would be to execute scripts in an order > based on their numbering of the script, regardless of location? A patch > to /usr/sbin/periodic to make this happen would be fairly trivial ... > so, I'm wondering if there is a reason that the two are run separately? > > The way it currently runs there is no (elegant) way (that I can find) to > write a local script which updates data before the system scripts are > run. This would be nice to have. Should this be filed as a bug? In my opinion, no. Just put your own scripts under /etc/periodic and be done with it. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/