]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
convert-ids-backend-files: Wait until suricata has stopped sucessfully.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 25 Apr 2022 18:12:19 +0000 (20:12 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 25 Apr 2022 18:12:19 +0000 (20:12 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-backend-files

index 55c3afbf893fd0ee1b53b5d4b03ab4b4b42f2cd1..614307380908573854e1948413d690668a89e9ac 100644 (file)
@@ -58,6 +58,9 @@ if(&IDS::ids_is_running()) {
        # Set start_suricata to true to start it
        # at the end of the script again.
        $start_suricata = "1";
+
+       # Wait until suricata has stopped.
+       sleep 1 while (-f $IDS::idspidfile);
 }
 
 #