]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
convert-ids-backend-files: Restart suricata if the IDS is running.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 16 Apr 2022 13:51:06 +0000 (15:51 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 16 Apr 2022 13:51:06 +0000 (15:51 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-backend-files

index 302ed5232298b5b5ebe0ef330bc48973f4861f3a..825a32c79131e63a6ab8c290a598b583f93ba9b2 100644 (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");
+}