diff --git a/backup-email.rsc b/backup-email.rsc index d0973011..de0f6caa 100644 --- a/backup-email.rsc +++ b/backup-email.rsc @@ -10,7 +10,8 @@ # https://rsc.eworm.de/doc/backup-email.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 {