dhcpd (via systemd) @boottime which does not wait for the interface..

lejeczek peljasz at yahoo.co.uk
Thu May 5 12:52:51 UTC 2016


On Wed, 2016-05-04 at 09:45 -0500, Pallissard, Matthew wrote:
> Can you share your unit file?
> 
[Unit]
Description=DHCPv4 Server Daemon
Documentation=man:dhcpd(8) man:dhcpd.conf(5)
Wants=network-online.target
After=network-online.target
After=time-sync.target
After=libvirtd.service
Requisite=libvirtd.service
[Service]
TimeoutStartSec=240s
Type=notify
ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd
-group dhcpd --no-pid virbr0
[Install]
WantedBy=multi-user.target
I've got some feedback from systemd list - libvirtd folks should know
what happens and when interface is created/initialized.
I wonder if this qualifies for bugzilla...
> Matt Pallissard
> 
> On 05/04/2016 06:46 AM, lejeczek wrote:
> 
> > 
> > hi users
> > 
> > I have my dhcpd to serve nothing but virbr0 (libvirt), OS is Centos 7.2
> > Dhcpd would not start, complaining like this:
> > 
> > No subnet declaration for virbr0 (no IPv4 addresses).
> > ** Ignoring requests on virbr0.  If this is not what
> >     you want, please write a subnet declaration
> >     in your dhcpd.conf file for the network segment
> >     to which interface virbr0 is attached. **
> > 
> > and systemctl -l shows:
> > ...
> > systemd[1]: start request repeated too quickly for dhcpd.service
> > ...
> > 
> > 
> > but suffice to restart dhcpd and all works!
> > I'v customized systemd's service conf, I've put:
> > 
> > After=libvirtd.service
> > Requisite=libvirtd.service
> > 
> > but this did not help.
> > Would you share your thoughts?
> > many thanks.
> > L.
> > 
> > 
> > _______________________________________________
> > dhcp-users mailing list
> > 
dhcp-users at lists.isc.org> > 
https://lists.isc.org/mailman/listinfo/dhcp-users
> > 
> > 
> > 

> 
> _______________________________________________
> dhcp-users mailing list
> 
dhcp-users at lists.isc.org> 
https://lists.isc.org/mailman/listinfo/dhcp-users> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20160505/5cff24cd/attachment.html>


More information about the dhcp-users mailing list