From 249d796b4b873fde6e4bf270b7028afe8073abc2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 25 Apr 2022 20:12:19 +0200 Subject: [PATCH] convert-ids-backend-files: Wait until suricata has stopped sucessfully. Signed-off-by: Stefan Schantl --- config/suricata/convert-ids-backend-files | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/suricata/convert-ids-backend-files b/config/suricata/convert-ids-backend-files index 55c3afbf89..6143073809 100644 --- a/config/suricata/convert-ids-backend-files +++ b/config/suricata/convert-ids-backend-files @@ -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); } # -- 2.39.5