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:
Stefan Schantl
2022-04-16 15:51:06 +02:00
parent 5bad33e9a4
commit f7eedacb43

View File

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