]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/dhcp-server: save leases in state directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Mar 2024 03:10:49 +0000 (12:10 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Mar 2024 16:57:17 +0000 (01:57 +0900)
commit5582b36c384fc522c23ef1ac032001882d033aff
treef820960321ee99f7ad75aa4bcf4d5613bd6bf33c
parent35b2c1b0c83b4cc8b240ba44359fccbfcc61b8ea
network/dhcp-server: save leases in state directory

Then, we can read the lease file on restart, and the DHCP server will be
able to manage previously assigned addresses.

To save leases in the state directory /var/lib/systemd/network/, this
adds systemd-networkd-dhcp-server.service, and by default
systemd-networkd does not start the DHCP server without the heler
service started.

Closes #29991.
man/systemd.network.xml
src/network/networkd-dhcp-server.c
src/network/networkd-dhcp-server.h
src/network/networkd-manager-varlink.c