Thank you Mark!   As it turns out apparently my issue was that 'cron' was 
installed but not 'anacron'.   I had those same /etc/cron.d, /etc/cron.daily, 
etc. files that you provided, but anacron wasn't installed/running, so they 
weren't being used.   As soon as I added anacron things seem to be working now. 
 Maybe anacron should be one of the dependencies for the koha-common package???

-----Original Message-----
From: Mark Alexander [mailto:ma...@pobox.com] 
Sent: Saturday, February 18, 2017 3:28 PM
To: Steve Nickerson <stevenanicker...@gmail.com>
Cc: koha <koha@lists.katipo.co.nz>
Subject: Re: [Koha] cron issue with Koha on Ubuntu

Excerpts from Steve Nickerson's message of 2017-02-18 13:38:56 -0500:
> Can someone tell
> me what the crontab(s) should look like and which user they should run
> under, please?   Anyone have a URL with instructions already?

Under my 16.11 installation, I see the following cron files, all owned by root 
but not appearing in the crontabs for root or any other user.  I've copied them 
below, with the GPL3 notices stripped out for brevity.

$ ls -laF /etc/cron*/koha*
-rwxr-xr-x 1 root root 1674 Sep 22 16:15 /etc/cron.daily/koha-common*
-rw-r--r-- 1 root root  516 Sep 22 16:15 /etc/cron.d/koha-common -rwxr-xr-x 1 
root root  840 Sep 22 16:15 /etc/cron.hourly/koha-common* -rwxr-xr-x 1 root 
root  838 Sep 22 16:15 /etc/cron.monthly/koha-common*

$ cat /etc/cron.daily/koha-common
#!/bin/sh
# /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas.
# Copyright 2010  Catalyst IT, Ltd

koha-foreach --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl
koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl 
-t koha-foreach --enabled --email 
/usr/share/koha/bin/cronjobs/advance_notices.pl -c koha-foreach --enabled 
/usr/share/koha/bin/cronjobs/membership_expiry.pl -c koha-foreach --enabled 
/usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1 
koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > 
/dev/null 2>&1 koha-foreach --enabled 
/usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 
--list-invites koha-foreach --enabled --noemail 
/usr/share/koha/bin/cronjobs/cleanup_database.pl --mail koha-foreach --enabled 
/usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1 
koha-run-backups --days 2 --output /var/spool/koha

$ cat /etc/cron.d/koha-common
# /etc/cron.d/koha-common
#
# Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # 
Zebra indexes are up to date.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Uncomment the following line if you do not want to use the koha-index-daemon 
integration # */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && 
koha-rebuild-zebra -q $(koha-list --enabled)

*/15 * * * * root koha-foreach --enabled --email 
/usr/share/koha/bin/cronjobs/process_message_queue.pl

$ cat /etc/cron.hourly/koha-common
#!/bin/sh
# /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas.
# Copyright 2010  Catalyst IT, Ltd

koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl

$ cat /etc/cron.monthly/koha-common
#!/bin/sh
# /etc/cron.monthly/koha-common -- Monthly housekeeping tasks for all Kohas.
# Copyright 2015 Biblibre

koha-foreach --enabled 
/usr/share/koha/bin/cronjobs/share_usage_with_koha_community.pl

_______________________________________________
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to