On Fri, Jan 09, 1998 at 04:30:43PM +0100, Remco Blaakmeer wrote: > Isn't it easier to have all packages that place something in /etc/cron.d > (or whatever is's called) call an update-cron script which conctenates all > files in /etc/cron.d/ into /etc/crontab? The /etc/crontab we have > currently would also have to me moved into /etc/cron.d/ . Perhaps > /etc/crontab could also contain some comment lines that say something like > "don't edit this file, instead edit the appropriate file in /etc/cron.d/". > > The update-cron script could be very simple, like: > > #!/bin/sh > cat <<EOF > /etc/crontab.tmp > # DO NOT EDIT THIS FILE. It will be overwritten by the update-cron script. > # Instead, edit the appropriate file in /etc/cron.d and re-run update-cron . > # > EOF > cat /etc/cron.d/* >> /etc/crontab.tmp > mv /etc/crontab.tmp /etc/crontab
That's far too easy. :) Yes, of course, that's great. > Advantage: cron doesn't need to be modified Disadvantage: Users adding cronjobs might see their jobs removed. But as there is a note at the beginning this should be acceptable. > Disadvantage (perhaps) of my proposal: each package has to call > update-crom in both postinst and postrm. Same for /etc/services, update-alternatives, menu and things. I don't see a disadvantage here. > I think there should be no modifications to cron that make Debian > incompatible with other unixes, if they can be avoided. Seconded. Regards Joey -- / Martin Schulze * [EMAIL PROTECTED] * 26129 Oldenburg / / Whenever you meet yourself you're in a time loop / / http://home.pages.de/~joey/ or in front of a mirror /
pgpepkfIX4XGB.pgp
Description: PGP signature