[Koha] cron issue with Koha on Ubuntu
Mark Alexander
marka at pobox.com
Sun Feb 19 09:28:08 NZDT 2017
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
More information about the Koha
mailing list