]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
unbound-dhcp-leases-bridge: Fix inotify handling
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Mar 2022 09:56:32 +0000 (09:56 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 4 Apr 2022 20:07:15 +0000 (20:07 +0000)
commit6d6e7949cfef37ee719e535ac21ddc7d175caf31
treeab85b16f1f83e04a4f3ed29c7c02c5a3bab01dcc
parent29a36036100f354a700aa30ad7a682b6488d87f9
unbound-dhcp-leases-bridge: Fix inotify handling

This patch changes that the script will listen to changes to the
directory instead of the file which got complicated when files got
renamed.

It also processes all changes at the same time and tries finding out
what actions have to be performed in order to avoid unnecessary
iterations.

The script is also limited to process any changes only once every five
seconds to keep resource usage in check on busy systems.

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