Julian Gilbey writes ("Re: Bug#35714: anacron and cron both run cron.daily !"): > > See the messages below, which seem to be due to anacron and cron both > > running cron.daily at the same time. > > This is an ongoing discussion on -devel. One suggestion which I made > based on some other people's ideas was for anacron to use dpkg-divert > to divert cron's crontab and to replace it with its own. I'm not sure > how that sounds, though.
Don't try to divert a conffile. Ew! Erg! Disaster! Well, likely braindamage, anyway. I'd give you 50/50 that dpkg would DTRT, and then 2:1 against all the relevant maintainer scripts getting it right, so we're down to a 1 in 6 chance of it working without evaporating people's crontabs ... > I prefer your suggestion of having 4 lines in crontab: three for > cron.{daily,...} which only run in the absence of anacron, and the > fourth to run anacron if it is present. Glad you agree. Don't forget to check for the anacron binary, rather than just its conffiles. Ian.