From owner-freebsd-hackers Tue Apr 6 14:45:36 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from post-20.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by hub.freebsd.org (Postfix) with ESMTP id 4737A14C92 for ; Tue, 6 Apr 1999 14:45:25 -0700 (PDT) (envelope-from dmlb@ragnet.demon.co.uk) Received: from [158.152.46.40] (helo=ragnet.demon.co.uk) by post-20.mail.demon.net with esmtp (Exim 2.10 #2) id 10Udd0-0004KH-0K for freebsd-hackers@freebsd.org; Tue, 6 Apr 1999 21:43:26 +0000 Received: from dmlb by ragnet.demon.co.uk with local (Exim 2.12 #1) id 10UdSm-000GCP-00 for freebsd-hackers@freebsd.org; Tue, 6 Apr 1999 22:32:52 +0100 Content-Length: 1292 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 06 Apr 1999 22:32:52 +0100 (BST) From: Duncan Barclay To: freebsd-hackers@freebsd.org Subject: Suggested additions for periodic Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I've just modified periodic to read configuration files to decide whether to run the script or not. This removes the hardcoded "exit 0"s which are difficult to maintain across system updates in the /etc/periodic/* scripts The configuration is read from $dir/perodic.conf $periodic_conf_files /etc/defaults/periodic.conf The files consist of lines containing the pathname of each script and a field indicating whether to run the script or not. The first matching entry in the configuration files determines the run policy. If there is no match then the script is run anyway - this is to provide some backwards compatability and reduce the burden of adding local scripts (if you add your own you probably want them to run). TODO: Write a manual page for the configuration files. Set periodic_conf_files in rc.conf/rc.conf.local. Makefile updates Submit a PR. I'll finish the TODO's if people think this is a worthwhile addition, otherwise I'll keep them as local patches. Duncan --- ________________________________________________________________________ Duncan Barclay | God smiles upon the little children, dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned. ________________________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message