[Koha] cron issue with Koha on Ubuntu

Mark Alexander marka at pobox.com
Wed Feb 22 03:57:13 NZDT 2017


I wrote:

> I'm not sure I understand why anacron was required.

Looking at this some more, could it be that your server isn't running
continuously?

The reason I ask is that the file /etc/crontab on Debian 8 looks like this:

17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

I believe this means that if your machine isn't running at these
times, and anacron isn't available, the cron jobs won't run.  In
particular, it appears that the daily, weekly, and monthly jobs are
run between 6:25 and 6:52 AM.

Anacron is useful for personal machines that don't run continuously,
but it doesn't play well with Koha, in my experience.


More information about the Koha mailing list