diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc index 9b940984..1c4c2cfb 100644 --- a/dhcp-to-dns.rsc +++ b/dhcp-to-dns.rsc @@ -10,7 +10,8 @@ # https://rsc.eworm.de/doc/dhcp-to-dns.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 {