]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 d8b7a2b8fcad076b13877c72f9621b25aec78f3e..1514909ee49b789fd6503e54905ab6b2c31ba818 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");
        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");
        }
 }
        }
 }