]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
unbound-dhcp-leases-bridge: Fix inotify handling
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Mar 2022 11:19:57 +0000 (11:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Mar 2022 11:24:34 +0000 (11:24 +0000)
commitb3b397e1dff7fb9ac4c9174eaa4adcf30d92480d
tree0030ae549ad272f69bd78de80eb354f41da80342
parent2bf8a520593c535d52631600a7909606016af5aa
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