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

(-)a/misc/cronjobs/crontab.example (-10 / +5 lines)
Lines 18-38 Link Here
18
# ENVIRONMENT:
18
# ENVIRONMENT:
19
# First, establish Koha's two important ENV variables.
19
# First, establish Koha's two important ENV variables.
20
20
21
PERL5LIB=/home/liblime/kohaclone
21
PERL5LIB=/usr/share/koha/lib
22
KOHA_CONF=/home/liblime/kohaclone/etc/koha-conf.xml
22
KOHA_CONF=/etc/koha/koha-conf.xml
23
23
24
# Some additional variables to save you typing
24
# Some additional variables to save you typing
25
KOHA_CRON_PATH = /home/liblime/kohaclone/misc/cronjobs
25
KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
26
#
26
#
27
# MULTIPLE KOHA SUPPORT:
27
# MULTIPLE KOHA SUPPORT:
28
# You can still run jobs for this user's additional koha installs, 
28
# You can still run jobs for this user's additional koha installs, 
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=/home/liblime/koha-test/etc/koha-conf.xml /home/liblime/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
32
# */10 * * * *    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=/home/liblime/koha-test/etc/koha-conf.xml PERL5LIB=/home/liblime/koha-test /home/liblime/koha-test/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
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
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 74-82 KOHA_CRON_PATH = /home/liblime/kohaclone/misc/cronjobs Link Here
74
# services_throttle -- resets the xISBN service
74
# services_throttle -- resets the xISBN service
75
59 23 * * *  $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1
75
59 23 * * *  $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1
76
76
77
# ROTATE LOGS
78
# Obviously, one needs logrotate(8) to do this
79
# 20 1 * * *  /usr/sbin/logrotate -s /home/liblime/kohaclone/var/run/zebradb/logstatus /home/liblime/kohaclone/etc/logrotate.conf
80
81
# clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
77
# clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
82
16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
78
16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
83
- 

Return to bug 5055