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;
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"