Suricata: Start service on red.up event if requested
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 15 Feb 2019 12:26:55 +0000 (13:26 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 15 Feb 2019 12:26:55 +0000 (13:26 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/initscripts/networking/red.up/23-suricata

index d8b7a2b..1514909 100644 (file)
@@ -26,5 +26,8 @@ if($ids_settings{'ENABLE_IDS'} eq "on") {
        if(&IDS::ids_is_running()) {
                # Call suricatactrl to perform a restart of suricata.
                &IDS::call_suricatactrl("restart");
+       } else {
+               # Call suricatactrl to start suricata.
+               &IDS::call_suricatactrl("start");
        }
 }