[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4672: no crontab entry for calendar -a



> > So I suggest to add a /etc/cron.daily/calendar that calls 'calendar
> > -a' every night.
> 
> I don't think that's a good idea - it's really more of a local
> decision.

If we had something like the cfgtool prototype I mentioned earlier,
inspired by many earlier discussions, we could have an
/etc/cron.daily/calendar like this:

	if [ `cfgtool --get calendar-run-by-cron` = yes ]
	then
		calendar -a
	fi
	
Since it's just a prototype, we could imagine support for booleans
(among other data types):

	if cfgtool --is-true calendar-run-by-cron
	then
		calendar -a
	fi

I'm more and more convinced that /etc/default or chkconfig or
cfgtool or something like that would be a really good idea.
An interface that consists of a suitably versatile program
might be best, since it allows more freedom in placement
of files, changes in file formats, and so on, and also makes
it easier to use in scripts.

-- 
Please read <http://www.iki.fi/liw/mail-to-lasu.html> before mailing me.
Please don't Cc: me when replying to my message on a mailing list.


Attachment: pgpsYh7Ot0gnQ.pgp
Description: PGP signature


Reply to: