eg-updater.sh stop/start-util handles reporter
authorBill Erickson <berickxx@gmail.com>
Wed, 3 Feb 2016 16:32:11 +0000 (11:32 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/eg-updater.sh

index 493e671..aaa44ef 100755 (executable)
@@ -488,9 +488,19 @@ function start_services {
 function stop_util {
     announce "Stopping utility services"
 
-    announce "Stopping hold targeter"
-    [ -f /tmp/hold_targeter-LOCK ] && \
+    if [ -f /tmp/hold_targeter-LOCK ]; then
+        announce "Stopping hold targeter"
+        set +e # lockfile may be stale
         sudo kill $(cat /tmp/hold_targeter-LOCK)
+        set -e
+    fi
+
+    if [ -f /tmp/reporter-LOCK ]; then
+        announce "Stopping reporter"
+        set +e # lockfile may be stale
+        sudo kill $(cat /tmp/reporter-LOCK)
+        set -e
+    fi
 
     cd $EVERGREEN_BASE/KCLS/admin-scripts;
 
@@ -514,6 +524,10 @@ function start_util {
     announce "Starting Z39.50"
     sudo ./eg-zoom-control.sh start
 
+    announce "Starting reporter"
+    sudo rm -f /tmp/reporter-LOCK;
+    $OSRF /openils/bin/clark-kent.pl -c 3 -d;
+
     if [ -n "$ADMIN_PASS" ]; then
         announce "Starting Connextion"
         sudo ./eg-marc-stream-control.sh start "$ADMIN_PASS"