Files
basementhud/overlay/etc/systemd/system/dhclient@.service
Dustin C. Hatch d6139d4884
All checks were successful
basementhud/pipeline/head This commit looks good
Switch from NetworkManager to dhclient
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.
2022-04-05 17:58:19 -05:00

14 lines
295 B
Desktop File

[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