Subject: Re: Implementing periodic.d
To: Julio M. Merino Vidal <jmmv@menta.net>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 04/03/2004 12:20:58
On Sat, 3 Apr 2004, Julio M. Merino Vidal wrote:
> Is it a good idea to implement this?  Comments on the specific details?

Have you looked at other implementations?

FreeBSD 4.9 and 5.x do
 * keep config in /etc/periodic.conf, with contents like:
	weekly_status_pkg_enable="YES"                          # Find out-of-date pkgs
	daily_clean_hoststat_enable="NO"
	daily_status_mail_rejects_enable="NO"
   I prefer "job=daily/weekly/whatever" more here though.
 * not have any daily/weekly/etc. scripts any more, there is only
   periodic(8), which is given a directory of where to find scripts
   to run, e.g. "periodoc daily" runs scripts from /etc/periodic/daily.
 * ordering of scripts by numbers in filename:
	ice% ls /etc/periodic/daily/
	100.clean-disks         300.calendar            440.status-mailq
	110.clean-tmps          310.accounting          450.status-security
	120.clean-preserve      320.rdist               460.status-mail-rejects
	130.clean-msgs          330.news                470.status-named
	...
   We clearly can do better here.

As such, I'd say go /etc/persiodic.conf and no more daily/weekly/monthly
scripts on their own.


 - Hubert

-- 
Hubert Feyrer <hubert@feyrer.de>