Skip to content

Commit

Permalink
for idaholab#456, use zeekctl deploy rather than just zeekctl restart…
Browse files Browse the repository at this point in the history
… when kicking over zeek after intel update
  • Loading branch information
mmguero committed Apr 18, 2024
1 parent 641e0ef commit 7d44153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/bin/zeekdeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ while [ $("$ZEEK_CTL" status | tail -n +2 | grep -P "localhost\s+running\s+\d+"
# check to see if intel feeds were updated, and if so, restart
INTEL_UPDATE_TIME="$(stat -c %Y "$INTEL_DIR"/__load__.zeek 2>/dev/null || echo '0')"
if (( $INTEL_UPDATE_TIME > $INTEL_UPDATE_TIME_PREV )); then
echo "Restarting via \"$ZEEK_CTL\" after intel update..." >&2
"$ZEEK_CTL" restart
echo "Redeploying via \"$ZEEK_CTL deploy\" after intel update..." >&2
"$ZEEK_CTL" deploy
INTEL_UPDATE_TIME_PREV="$INTEL_UPDATE_TIME"
fi

Expand Down

0 comments on commit 7d44153

Please sign in to comment.