Talk:Dhcpd

From ArchWiki
Latest comment: 8 November 2016 by Beroal in topic "pid" files for services

Use for PXE

It would be great if there was a little more on using dhcpd with a tftp server to enable pxe network installs. I realise there's a link here to the Arch Wiki PXE page, but that page only talks about dnsmasq, not dhcpd+tftpd. pxeboot installs are in fact the only area I've ever found otherwise superb Arch documentation to be lacking. Even some sort of cross-correlation between how it's done with dnsmasq and equivalent procedures with dhcp/tftp would be helpful, if that's possible. --Bananabrain (talk) 00:02, 7 August 2015 (UTC)Reply[reply]

"pid" files for services

"Service file." If we are going to run separate instances for network interfaces, we should use different "pid" files for them, is not it? So the service file should contain the following.

/etc/systemd/system/dhcpd4@.service
[Service]
PIDFile=/run/dhcpd4-%I.pid
ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/dhcpd.conf -pf /run/dhcpd4-%I.pid %I

--Beroal (talk) 06:52, 8 November 2016 (UTC)Reply[reply]