]> git.ipfire.org Git - ipfire-2.x.git/commit - config/unbound/unbound-dhcp-leases-bridge
unbound-dhcp-leases-bridge: Replace leases file atomically
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Mar 2019 12:51:06 +0000 (12:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Mar 2019 12:51:06 +0000 (12:51 +0000)
commitb666975ec292fec239aa6023dc79abf5538c9d95
tree6ec4cbe56ae8204364a48600e360c78a93fd7540
parent35cdc506b06ed2e5fc8f7ad7fe57239eaadbda58
unbound-dhcp-leases-bridge: Replace leases file atomically

When there is a large number of leases, writing the file may
take a long time. When unbound is re-reading its configuration
in that time, the file might syntactically incorrect.

This change writes the file first and then moves it
to the right place in one transaction.

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