suricata: use KILL is suricata not shut down normal.

sometimes suricata hung and lock the pidfile at
suricata stop.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-03-09 06:41:32 +00:00
parent b3bc092dad
commit 57fda8c8ad
2 changed files with 5 additions and 1 deletions

View File

@@ -190,7 +190,10 @@ case "$1" in
# Flush firewall chain.
flush_fw_chain
# Remove suricata control socket.
# Sometimes suricata not correct shutdown. So killall.
killall -KILL /usr/bin/suricata 2>/dev/null
# Remove suricata control socket.
rm /var/run/suricata/* >/dev/null 2>/dev/null
# Trash remain pid file if still exists.