Skip to content

Commit

Permalink
for #186, use runtime-logs share for Arkime logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Apr 19, 2023
1 parent da1b155 commit 1c1d7d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arkime/scripts/initarkime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions arkime/scripts/viewer_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions arkime/scripts/wise_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c1d7d5

Please sign in to comment.