mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
convert-ids-backend-files: Restart suricata if the IDS is running.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -243,3 +243,13 @@ foreach my $file (@files_to_drop) {
|
||||
# Remove the file if it exists.
|
||||
unlink("$file") if (-f "$file");
|
||||
}
|
||||
|
||||
#
|
||||
## Step 8: Restart the IDS if running.
|
||||
#
|
||||
|
||||
# Check if the IDS is running.
|
||||
if(&IDS::ids_is_running()) {
|
||||
# Call suricatactrl to perform the restart.
|
||||
&IDS::call_suricatactrl("restart");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user