Files
DetectionLab/Vagrant/resources/malcolm/moloch/scripts/wise_service.sh
2021-08-06 10:35:01 +02:00

15 lines
389 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2021 Battelle Energy Alliance, LLC. All rights reserved.
while true; do
if [[ ("$WISE" == "on") && (-f /var/run/moloch/runwise) && (-f $ARKIMEDIR/etc/wise.ini) ]]; then
echo "Launch wise..."
pushd $ARKIMEDIR/wiseService >/dev/null 2>&1
$ARKIMEDIR/bin/node wiseService.js -c $ARKIMEDIR/etc/wise.ini
popd >/dev/null 2>&1
fi
sleep 5
done