DHCP daemon will not start at boot

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

DHCP daemon will not start at boot

Postby shellwig » Mon Jul 07, 2014 6:30 pm

I had to reinstall my DockStar after a U-Boot update went wrong. Everything is back up except my DHCP server will not start at boot. I did the systemctl enable dhcpd4 and upon reboot systemctl status dhcpd4 returns:

â dhcpd4.service - IPv4 DHCP server
Loaded: loaded (/usr/lib/systemd/system/dhcpd4.service; enabled)
Active: failed (Result: exit-code) since Wed 1969-12-31 19:00:19 EST; 44 years 6 months ago
Process: 118 ExecStart=/usr/sbin/dhcpd -4 -q -pf /run/dhcpd4.pid (code=exited, status=1/FAILURE)

Dec 31 19:00:17 ns01 dhcpd[118]: Internet Systems Consortium DHCP Server 4.3.0
Dec 31 19:00:17 ns01 dhcpd[118]: Copyright 2004-2014 Internet Systems Consortium.
Dec 31 19:00:17 ns01 dhcpd[118]: All rights reserved.
Dec 31 19:00:17 ns01 dhcpd[118]: For info, please visit https://www.isc.org/software/dhcp/
Dec 31 19:00:17 ns01 dhcpd[118]: Wrote 0 deleted host decls to leases file.
Dec 31 19:00:17 ns01 dhcpd[118]: Wrote 0 new dynamic host decls to leases file.
Dec 31 19:00:17 ns01 dhcpd[118]: Wrote 10 leases to leases file.
Dec 31 19:00:19 ns01 systemd[1]: dhcpd4.service: control process exited, code=exited status=1
Dec 31 19:00:19 ns01 systemd[1]: Failed to start IPv4 DHCP server.
Dec 31 19:00:19 ns01 systemd[1]: Unit dhcpd4.service entered failed state.



systemctl start dhcpd4 works fine afterwards so I think it is having a problem with the time not being synchronized yet. This was not a problem prior to the rebuild which had been patched up over a year so I am probably missing one simple thing.
shellwig
 
Posts: 6
Joined: Tue May 03, 2011 10:43 pm

Re: DHCP daemon will not start at boot

Postby WarheadsSE » Mon Jul 07, 2014 7:39 pm

You may need to add a dependency on ntpdate, or something of the ilk.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: DHCP daemon will not start at boot

Postby shellwig » Tue Jul 08, 2014 12:07 am

Thanks Warhead, that put me on the right track; the new install did not add the ntp user or group.
shellwig
 
Posts: 6
Joined: Tue May 03, 2011 10:43 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 3 guests