]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/networking/red.up/23-suricata
Suricata: Start service on red.up event if requested
[ipfire-2.x.git] / 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");
+       } else {
+               # Call suricatactrl to start suricata.
+               &IDS::call_suricatactrl("start");
        }
 }