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

14 lines
350 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2021 Battelle Energy Alliance, LLC. All rights reserved.
while true; do
if [[ -f /var/run/moloch/initialized && "$VIEWER" == "on" ]]; then
echo "Launch viewer..."
cd $ARKIMEDIR/viewer
$ARKIMEDIR/bin/node viewer.js -c $ARKIMEDIR/etc/config.ini | tee -a $ARKIMEDIR/logs/viewer.log 2>&1
fi
sleep 5
done