]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
initscripts: Fix lots of whitespace issues in the suricata script
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Aug 2025 16:19:30 +0000 (17:19 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:01 +0000 (18:42 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/suricata

index a529c91c476b77813ed8f6f8c9708aa7d4bc87e1..ee952e336cef1c34260067e1d1da58fb607558bf 100644 (file)
@@ -174,7 +174,7 @@ generate_fw_rules() {
 }
 
 case "$1" in
-        start)
+       start)
                # Get amount of CPU cores
                cpu_count="$(getconf _NPROCESSORS_ONLN)"
 
@@ -201,9 +201,9 @@ case "$1" in
                        # Generate firewall rules
                        generate_fw_rules
                fi
-       ;;
+               ;;
 
-        stop)
+       stop)
                boot_mesg "Stopping Intrusion Detection System..."
                killproc -p /var/run/suricata.pid /usr/bin/suricata
 
@@ -215,17 +215,17 @@ case "$1" in
 
                # Don't report returncode of rm if suricata was not started
                exit 0
-        ;;
+               ;;
 
-        status)
+       status)
                PIDFILE="/var/run/suricata.pid" statusproc /usr/bin/suricata
                PIDFILE="/var/run/suricata/reporter.pid" statusproc /usr/bin/suricata-reporter
-                ;;
+               ;;
 
-        restart)
-                $0 stop
-                $0 start
-                ;;
+       restart)
+               $0 stop
+               $0 start
+               ;;
 
        reload)
                # Send SIGUSR2 to the suricata process to perform a reload
@@ -239,8 +239,8 @@ case "$1" in
                generate_fw_rules
                ;;
 
-        *)
-                echo "Usage: $0 {start|stop|restart|reload|status}"
-                exit 1
-                ;;
+       *)
+               echo "Usage: $0 {start|stop|restart|reload|status}"
+               exit 1
+               ;;
 esac