Skip to content

Commit

Permalink
Update Snort test script to check if Snort process is running
Browse files Browse the repository at this point in the history
  • Loading branch information
bengo237 committed Aug 22, 2024
1 parent 604b526 commit 1d3b753
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/tests/test-script.bats
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ run_install_script() {
echo "which snort output: $output"
[ "$status" -eq 0 ]

# Attempt to start Snort if it is not running
run snort -D -i eth0 -c /etc/snort/snort.conf
echo "Attempt to start Snort: $output"

# Check if Snort process is running
# Check if Snort process is running
run pgrep snort
echo "pgrep snort output: $output"
[ "$status" -eq 0 ]
Expand Down

0 comments on commit 1d3b753

Please sign in to comment.