Bug#35714: anacron and cron both run cron.daily !
Joey Hess writes ("Re: Bug#35714: anacron and cron both run cron.daily !"):
> shaleh@clifford.livenet.net wrote:
> > The problem is that anacron does not have the right to disable crontab. I have
> > mailed the cron maint about this and am awaiting a solution.
> >
> > Simply commenting out the calls in crontab to daily,monthly,weekly fix the
> > problem.
> >
> > If you can offer him and I a solution, we would be appreciative.
>
> How about if he changes /etc/crontab to use something like:
>
> 0 0 * * * root test -e /etc/cron.d/anacron || nice run-parts --report /etc/cron.daily
> 21 0 * * 7 root test -e /etc/cron.d/anacron || nice run-parts --report /etc/cron.weekly
> 31 0 1 * * root test -e /etc/cron.d/anacron || nice run-parts --report /etc/cron.monthly
>
> This way if anacron is installed the lines automatically stop working.
Even if anacron is subsequently removed but not purged ...
Ian.
Reply to: