Skip to content

Instantly share code, notes, and snippets.

@Bsebring
Created August 14, 2019 19:54
Show Gist options
  • Save Bsebring/e1f828d0c949dd6429e13f32b633e09e to your computer and use it in GitHub Desktop.
Save Bsebring/e1f828d0c949dd6429e13f32b633e09e to your computer and use it in GitHub Desktop.
Restart Suricata conveniently in Daemon mode using this bash script
# Stop parent process (does not fully stop suricata)
service suricata stop
# Remove the pid file if it exists
FILE=/var/run/suricata.pid
if test -f "$FILE"; then
rm "$FILE"
fi
# Kill suricata by name to eliminate child processes and prevent old configurations from ran$
pkill -f "suricata"
# Start suricata as a Daemon
suricata --af-packet -vvv -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment