[Koha-patches] [PATCH] This is a revised patch, removing the lines pertaining to logrotate.
Liz Rea
lrea at nekls.org
Thu Jan 6 20:25:08 CET 2011
From: Magnus Enger <magnus at enger.priv.no>
[Bug 5055] Adding additional examples for dev vs standard installs.
Extends Magnus Enger's work on making the crontab.example generic, adds additional examples of possible paths for dev installs.
---
misc/cronjobs/crontab.example | 27 +++++++++++++++++----------
1 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example
index 33845a8..a7c6352 100644
--- a/misc/cronjobs/crontab.example
+++ b/misc/cronjobs/crontab.example
@@ -1,5 +1,5 @@
# Koha Example Crontab File
-# Author: Joe Atzberger <atz at liblime.com>
+# Authors: Joe Atzberger, Magnus Enger, Liz Rea
#
# This is an example of a crontab file for Debian. It may not work
# in other versions of crontab, like on Solaris 8 or BSD, for example.
@@ -18,21 +18,32 @@
# ENVIRONMENT:
# First, establish Koha's two important ENV variables.
-PERL5LIB=/home/liblime/kohaclone
-KOHA_CONF=/home/liblime/kohaclone/etc/koha-conf.xml
+# For a Standard Install (comment out with # to disable)
+PERL5LIB=/usr/share/koha/lib
+KOHA_CONF=/etc/koha/koha-conf.xml
+
+# For a Dev Install (uncomment by removing the # to enable, assumes unix user koha)
+# PERL5LIB=/home/koha/koha-dev/lib
+# KOHA_CONF=/home/koha/koha-dev/koha-conf.xml
# Some additional variables to save you typing
-KOHA_CRON_PATH = /home/liblime/kohaclone/misc/cronjobs
+
+# For a Standard Install (comment out with # to disable)
+KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
+
+# For a Dev Install (uncomment by removing the # to enable, assumes unix user koha)
+# KOHA_CRON_PATH = /home/koha/kohaclone/misc/cronjobs
+#
#
# MULTIPLE KOHA SUPPORT:
# You can still run jobs for this user's additional koha installs,
# by manipulating those variables in the command.
#
# For example, on the same codebase:
-# */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
+# */10 * * * * KOHA_CONF=/etc/koha/koha-conf.xml /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
#
# For example, on a separate codebase:
-# */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
+# */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
#
# ADDITIONAL INFO:
# See the perldoc of individual scripts to determine what other options
@@ -74,9 +85,5 @@ KOHA_CRON_PATH = /home/liblime/kohaclone/misc/cronjobs
# services_throttle -- resets the xISBN service
59 23 * * * $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1
-# ROTATE LOGS
-# Obviously, one needs logrotate(8) to do this
-# 20 1 * * * /usr/sbin/logrotate -s /home/liblime/kohaclone/var/run/zebradb/logstatus /home/liblime/kohaclone/etc/logrotate.conf
-
# clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use!
16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
--
1.5.6.5
More information about the Koha-patches
mailing list