From 8cca9c2c5f1af58e096f012abd112bc34f09cdc9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:28 +0200 Subject: [PATCH] backup-partition: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- backup-partition.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup-partition.rsc b/backup-partition.rsc index 1f0cf2ee..8480c629 100644 --- a/backup-partition.rsc +++ b/backup-partition.rsc @@ -11,7 +11,8 @@ # https://rsc.eworm.de/doc/backup-partition.md :global GlobalFunctionsReady; -:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:onerror e { :retry { :if ($GlobalFunctionsReady != true) \ + do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; }; :local ExitOK false; :do {