IDS: Add reload option to initscript

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2018-08-11 22:28:07 +02:00
parent e2e7880dc7
commit 6187da5055

View File

@@ -53,9 +53,14 @@ case "$1" in
$0 stop
$0 start
;;
reload)
# Send SIGUSR2 to the suricata process to perform a reload
# of the ruleset.
kill -USR2 $(pidof suricata)
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
;;
esac