]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
unbound-dhcp-leases-bridge: Watch unbound
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Aug 2024 09:10:33 +0000 (10:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Aug 2024 09:10:33 +0000 (10:10 +0100)
commit8ead2ddf3d0f1521c2a99b509373615f77a754a0
tree6f717fe892a8a6db8b048f12d5e3a4f9fc476967
parent048d2be91a17ea57b870b0b944d439978b2f88a8
unbound-dhcp-leases-bridge: Watch unbound

This patch adds a watcher thread which monitors if Unbound is still
alive. If not, it will wait until Unbound comes back, rewrite the leases
file and reload Unbound to get it back into sync.

Afterwards Unbound will receive updates as usual.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/unbound/unbound-dhcp-leases-bridge