View | Details | Raw Unified | Return to bug 8741
Collapse All | Expand All

(-)a/misc/cronjobs/crontab.example (-16 / +15 lines)
Lines 29-38 KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs Link Here
29
# by manipulating those variables in the command.
29
# by manipulating those variables in the command.
30
#
30
#
31
# For example, on the same codebase:
31
# For example, on the same codebase:
32
# */10 * * * *    KOHA_CONF=/etc/koha/koha-conf.xml /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
32
# */10 * * * *    __KOHA_USER__  KOHA_CONF=/etc/koha/koha-conf.xml /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
33
#
33
#
34
# For example, on a separate codebase:
34
# For example, on a separate codebase:
35
# */10 * * * *    KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/home/koha/kohaclone /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
35
# */10 * * * *    __KOHA_USER__  KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/home/koha/kohaclone /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
36
# 
36
# 
37
# ADDITIONAL INFO:
37
# ADDITIONAL INFO:
38
# See the perldoc of individual scripts to determine what other options
38
# See the perldoc of individual scripts to determine what other options
Lines 43-84 KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs Link Here
43
# Cron/crontab will choke without it.
43
# Cron/crontab will choke without it.
44
#
44
#
45
# SCHEDULED JOBS:
45
# SCHEDULED JOBS:
46
# m h  dom mon dow   command
46
# m h  dom mon dow   user command
47
47
48
# OVERDUE NOTICES
48
# OVERDUE NOTICES
49
0    1 * * *  $KOHA_CRON_PATH/overdue_notices.pl -t
49
0    1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/overdue_notices.pl -t
50
50
51
# FINES
51
# FINES
52
5    1 * * *  $KOHA_CRON_PATH/fines.pl
52
5    1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/fines.pl
53
53
54
# ADVANCE NOTICES
54
# ADVANCE NOTICES
55
10   1 * * *  $KOHA_CRON_PATH/advance_notices.pl -c
55
10   1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/advance_notices.pl -c
56
56
57
# PROCESS LONG OVERDUES
57
# PROCESS LONG OVERDUES
58
# updates item status from available to longoverdue for items long overdue
58
# updates item status from available to longoverdue for items long overdue
59
# 19 1 * * *  $KOHA_CRON_PATH/longoverdue.pl --lost 90=1 --confirm
59
# 19 1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/longoverdue.pl --lost 90=1 --confirm
60
60
61
# SEND EMAILS
61
# SEND EMAILS
62
15   * * * *  $KOHA_CRON_PATH/process_message_queue.pl
62
15   * * * *  __KOHA_USER__  $KOHA_CRON_PATH/process_message_queue.pl
63
63
64
# Hourly holds queue updated
64
# Hourly holds queue updated
65
52   * * * *  $KOHA_CRON_PATH/holds/build_holds_queue.pl >/dev/null 2>&1
65
52   * * * *  __KOHA_USER__  $KOHA_CRON_PATH/holds/build_holds_queue.pl >/dev/null 2>&1
66
66
67
# Cancel expired holds
67
# Cancel expired holds
68
0 1 * * *  $KOHA_CRON_PATH/holds/cancel_expired_holds.pl >/dev/null 2>&1
68
0 1 * * *  __KOHA_USER__ $KOHA_CRON_PATH/holds/cancel_expired_holds.pl >/dev/null 2>&1
69
69
70
# Update popularity counts for biblio records
70
# Update popularity counts for biblio records
71
0 2 * * *  $KOHA_CRON_PATH/update_totalissues.pl --commit=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1
71
0 2 * * *  __KOHA_USER__ $KOHA_CRON_PATH/update_totalissues.pl --commit=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1
72
72
73
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day
73
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day
74
# for both authorities and bibs
74
# for both authorities and bibs
75
*/10 * * * *  $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
75
*/10 * * * *  __KOHA_USER__  $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
76
76
77
# services_throttle -- resets the xISBN service
77
# services_throttle -- resets the xISBN service
78
59 23 * * *  $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1
78
59 23 * * *  __KOHA_USER__ $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1
79
79
80
# clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
80
# clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
81
16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
81
16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
82
82
83
# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
83
# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
84
@weekly	$KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1
84
@weekly	__KOHA_USER__  $KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1
85
- 

Return to bug 8741