Suricata: Start service on red.up event if requested
[ipfire-2.x.git] / 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");
        }
 }