Suricata: Start service on red.up event if requested

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-02-15 13:26:55 +01:00
parent d215f6e980
commit 77c07352a5

View 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");
}
}