From 1c1d7d55ef606136e0bcbd2e710569189d7c3e1c Mon Sep 17 00:00:00 2001 From: SG Date: Wed, 19 Apr 2023 10:09:31 -0600 Subject: [PATCH] for idaholab/Malcolm#186, use runtime-logs share for Arkime logs --- arkime/scripts/initarkime.sh | 2 +- arkime/scripts/viewer_service.sh | 1 + arkime/scripts/wise_service.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arkime/scripts/initarkime.sh b/arkime/scripts/initarkime.sh index c094fe8c1..86089a386 100755 --- a/arkime/scripts/initarkime.sh +++ b/arkime/scripts/initarkime.sh @@ -17,7 +17,7 @@ fi [[ "$OPENSEARCH_SSL_CERTIFICATE_VERIFICATION" != "true" ]] && DB_SSL_FLAG="--insecure" || DB_SSL_FLAG="" OPENSEARCH_URL_FULL="$(grep -Pi '^elasticsearch\s*=' $ARKIME_DIR/etc/config.ini | cut -d'=' -f2-)" -rm -rf /var/run/arkime/initialized /var/run/arkime/runwise $ARKIME_DIR/logs/* +rm -f /var/run/arkime/initialized /var/run/arkime/runwise # make sure TLS certificates exist prior to starting up CERT_FILE=$ARKIME_DIR/etc/viewer.crt diff --git a/arkime/scripts/viewer_service.sh b/arkime/scripts/viewer_service.sh index d9ce81977..0b589ceea 100755 --- a/arkime/scripts/viewer_service.sh +++ b/arkime/scripts/viewer_service.sh @@ -5,6 +5,7 @@ while true; do if [[ -f /var/run/arkime/initialized && "$VIEWER" == "on" ]]; then echo "Launch viewer..." + rm -f $ARKIME_DIR/logs/viewer* cd $ARKIME_DIR/viewer $ARKIME_DIR/bin/node viewer.js --insecure -c $ARKIME_DIR/etc/config.ini | tee -a $ARKIME_DIR/logs/viewer.log 2>&1 fi diff --git a/arkime/scripts/wise_service.sh b/arkime/scripts/wise_service.sh index 74d3deb7d..7f95f84c4 100755 --- a/arkime/scripts/wise_service.sh +++ b/arkime/scripts/wise_service.sh @@ -6,6 +6,7 @@ while true; do if [[ ("$WISE" == "on") && (-f /var/run/arkime/runwise) && (-f $ARKIME_DIR/etc/wise.ini) ]]; then echo "Launch wise..." + rm -f $ARKIME_DIR/logs/wise* pushd $ARKIME_DIR/wiseService >/dev/null 2>&1 $ARKIME_DIR/bin/node wiseService.js --insecure -c $ARKIME_DIR/etc/wise.ini popd >/dev/null 2>&1