JBAS-680 util scripts osrf client logging via ENV
authorBill Erickson <berickxx@gmail.com>
Tue, 26 May 2015 14:38:33 +0000 (10:38 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Avoid use of custom opensrf_core.client.xml, show sole purpose is to
force opensrf clieng logging, but using the new OSRF_LOG_CLIENT=1
environment variable.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/utility-scripts/overdue/force_send_notices.sh
KCLS/utility-scripts/overdue/run_holds.sh
KCLS/utility-scripts/overdue/run_overdues.sh

index d649977..a036125 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/bash
 OPENILS=/openils
-SRF_CORE=/openils/conf/opensrf_core.client.xml
+SRF_CORE=/openils/conf/opensrf_core.xml
 EG_BIN=/openils/bin
 EG_CONF=/openils/conf
 AT_FILTERS=/openils/conf/a_t_filters/
+OSRF_LOG_CLIENT=1
 DAYS_BACK=$1
 [ -z "$DAYS_BACK" ] && DAYS_BACK=0
 DATE=$(date -d"-$DAYS_BACK day" +%Y-%m-%d);
index d67b5b9..4919070 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/bash
 OPENILS=/openils
-SRF_CORE=/openils/conf/opensrf_core.client.xml
+SRF_CORE=/openils/conf/opensrf_core.xml
 EG_BIN=/openils/bin
 EG_CONF=/openils/conf
 AT_FILTERS=/openils/conf/a_t_filters/
+OSRF_LOG_CLIENT=1
 
 # Daily batched holds,collection print & phone
 $EG_BIN/action_trigger_runner.pl --osrf-config $SRF_CORE --run-pending --granularity Daily-Active-Print --granularity-only && ($EG_BIN/send-print-notices.pl --event-def 131 --prefix holds-available-print; $EG_BIN/send-print-notices.pl --event-def 132 --prefix collection;)
index 9d9e295..ce9cc58 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/bash
 OPENILS=/openils
-SRF_CORE=/openils/conf/opensrf_core.client.xml
+SRF_CORE=/openils/conf/opensrf_core.xml
 EG_BIN=/openils/bin
 EG_CONF=/openils/conf
 AT_FILTERS=/openils/conf/a_t_filters/
+OSRF_LOG_CLIENT=1
 
 # Daily Mark Lost  (signed off: Bill)
 $EG_BIN/action_trigger_runner.pl --osrf-config $SRF_CORE --run-pending --process-hooks --granularity Daily-Lost-28 --granularity-only --custom-filters $AT_FILTERS/a_t_filters.28_lost.json;