LP#1468096 - Fixed sitemap generator user/stompro/lp1468096_example_crontab_update
authorJosh Stompro <stomproj@larl.org>
Wed, 24 Jun 2015 20:12:39 +0000 (15:12 -0500)
committerJosh Stompro <stomproj@larl.org>
Wed, 24 Jun 2015 20:12:39 +0000 (15:12 -0500)
 - added purg_holds.srfsh example
 - added action_trigger_aggregator.pl example.
 - added a few more ENV variables

Signed-off-by: Josh Stompro <stomproj@larl.org>
Open-ILS/examples/crontab.example

index ee790e9..cf5b144 100644 (file)
 # 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 <event_defs> --end-date <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