From 0cce74539053fbe72dbeed8c1159b6161a275e55 Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Wed, 24 Jun 2015 15:12:39 -0500 Subject: [PATCH] LP#1468096 - Fixed sitemap generator - added purg_holds.srfsh example - added action_trigger_aggregator.pl example. - added a few more ENV variables Signed-off-by: Josh Stompro --- Open-ILS/examples/crontab.example | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Open-ILS/examples/crontab.example b/Open-ILS/examples/crontab.example index ee790e9695..cf5b14472f 100644 --- a/Open-ILS/examples/crontab.example +++ b/Open-ILS/examples/crontab.example @@ -23,9 +23,12 @@ # ENVIRONMENT: # First, establish Evergreen ENV variables. # -OPENILS = /openils -SRF_CORE = /openils/conf/opensrf_core.xml -EG_BIN_DIR = /openils/bin +OPENILS = /openils +SRF_CONF_DIR = /openils/conf +SRF_CORE = $SRF_CONF_DIR/opensrf_core.xml +SRF_CONF = $SRF_CONF_DIR/opensrf.xml +EG_BIN_DIR = /openils/bin +OPENILS_WEB = /openils/var/web # crontab format: # m h dom mon dow command @@ -36,6 +39,10 @@ EG_BIN_DIR = /openils/bin # Run the hold thawer 5 0 * * * $EG_BIN_DIR/thaw_expired_frozen_holds.srfsh +# Run the holds purger +# Before enabling, setup Global Flag settings for Purge Holds. +#5 10 * * 1-5 $EG_BIN_DIR/purge_holds.srfsh + # Generate fines 30 0 * * * $EG_BIN_DIR/fine_generator.pl $SRF_CORE @@ -74,5 +81,10 @@ EG_BIN_DIR = /openils/bin 20 3 1 * * $EG_BIN_DIR/action_trigger_runner.pl --granularity monthly --process-hooks --run-pending 25 3 1 1 * $EG_BIN_DIR/action_trigger_runner.pl --granularity yearly --process-hooks --run-pending +# Action Trigger Aggregator +# Combines a group of events and outputs them to one file. +# Must be customized before running. +# 15 7 * * 1-5 $EG_BIN_DIR/action_trigger_aggregator.pl --event-defs --end-date --output-file=output.csv + # Sitemap Generator - added in 2.7 -# 12 2 * * * cd $OPENILS/var/web && $EG_BIN_DIR/sitemap_generator --lib-hostname http://catalog.example.org +# 12 2 * * * cd $OPENILS_WEB && $EG_BIN_DIR/sitemap_generator --lib-hostname http://catalog.example.org --config-file=$SRF_CONF -- 2.11.0