mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 12:15:52 +02:00
Suricata: Start service on red.up event if requested
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user