Created
August 14, 2019 19:54
Restart Suricata conveniently in Daemon mode using this bash script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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