]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
IDS: Add reload option to initscript
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 11 Aug 2018 20:28:07 +0000 (22:28 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 11 Aug 2018 20:28:07 +0000 (22:28 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/initscripts/system/suricata

index e2950281c6eb91c3d2ca03afe37905972391d29c..a49da8335d3a52f2b454e15e0c07d691a7310b56 100644 (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