Switch from NetworkManager to dhclient
All checks were successful
basementhud/pipeline/head This commit looks good

NetworkManager is a memory hog.  We don't need it to do anything except
renew the DHCP lease when it's time, so let's switch to a more
lightweight alternative.  Unfortunately, Fedora does not include any
systemd units for `dhclient`, so we have to provide our own.
This commit is contained in:
2022-04-05 16:31:45 -05:00
parent 919b578ebc
commit d6139d4884
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
[Unit]
Description=DHCPv4 client for %I
Before=network-online.target
Before=network.target
[Service]
Type=forking
RuntimeDirectory=dhclient
ExecStart=/usr/sbin/dhclient -4 -1 -lf /run/dhclient/%I.lease -pf /run/dhclient/%I.pid
PIDFile=/run/dhclient/%I.pid
[Install]
WantedBy=multi-user.target