Skip to content

Commit

Permalink
more consistently differentiate between uploaded and live-captured tr…
Browse files Browse the repository at this point in the history
…affic idaholab#321 WIP
  • Loading branch information
mmguero committed Jan 5, 2024
1 parent 58c94f3 commit 1187798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions arkime/scripts/docker_entrypoint.sh
Expand Up @@ -60,6 +60,7 @@ if [[ ! -f "${ARKIME_CONFIG_FILE}" ]] && [[ -r "${ARKIME_DIR}"/etc/config.orig.i
sed -i "s/^\(freeSpaceG=\).*/\1"${ARKIME_FREESPACEG}"/" "${ARKIME_CONFIG_FILE}"
sed -i "s/^\(viewPort=\).*/\1"${VIEWER_PORT}"/" "${ARKIME_CONFIG_FILE}"
sed -i "s/^\(pcapDir=\).*/\1\/data\/pcap\/arkime-live/" "${ARKIME_CONFIG_FILE}"
# note: when setting the node name, the viewer_service.sh script needs to match
sed -i "s/MALCOLM_PCAP_NODE_NAME/${NODE_NAME}-upload/g" "${ARKIME_CONFIG_FILE}"

# performance tuning parameters
Expand Down
2 changes: 2 additions & 0 deletions arkime/scripts/viewer_service.sh
Expand Up @@ -2,6 +2,8 @@

# Copyright (c) 2024 Battelle Energy Alliance, LLC. All rights reserved.

# note: when setting the node name, the docker_entrypoint.sh script around
# MALCOLM_PCAP_NODE_NAME as it gets written into config.ini needs to match
[[ "${ARKIME_LIVE_CAPTURE:-false}" == "true" ]] && NODE_NAME_FLAG= || NODE_NAME_FLAG=-upload

while true; do
Expand Down

0 comments on commit 1187798

Please sign in to comment.