dhcp-to-dns: fail if global functions do not become ready

This commit is contained in:
Christian Hesse 2025-05-06 11:15:15 +02:00
parent a556f4c398
commit a308d4269e

View file

@ -9,11 +9,11 @@
# check DHCP leases and add/remove/update DNS entries
# https://rsc.eworm.de/doc/dhcp-to-dns.md
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:local ExitOK false;
:onerror Err {
:global GlobalFunctionsReady;
:retry { :if ($GlobalFunctionsReady != true) \
do={ :error ("Global functions not ready."); }; } delay=500ms max=50;
:local ScriptName [ :jobname ];
:global Domain;