Dhcp not starting at reboot
-
hi for a while now whenever I reboot Dhcp server doesn't start.
Same with dnsmasq
In the log I did found an entry for dhcp but not for dns
Jan 20 00:14:31 php: : The command '/usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d byronent.eu -p /var/run/dnsmasq.pid -h /var/etc/hosts' returned exit code '1', the output was 'lease file needs to exist before starting dhcpleases: No such file or directory'
After logging on and clicking on start service it works
Anybody else ? Is this a config problem? Or a bug?
-
Are you sure there are no other log messages, perhaps on the DHCP tab?
I saw something similar once where a stale pid file was left in /var/run and for some reason it refused to start because it believed it was already running.
You might just try to rm /var/run/* and then immediately reboot.
-
I've tried it a couple of times,
however it stays the same…
Jan 25 07:23:58 dhcpleases: lease file needs to exist before starting dhcpleases
Jan 25 07:23:58 php: : The command '/usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d byronent.eu -p /var/run/dnsmasq.pid -h /var/etc/hosts' returned exit code '1', the output was 'lease file needs to exist before starting dhcpleases: No such file or directory'Maybe it's because of the previous line ?
-
This looks like the bug I've found here
http://redmine.pfsense.org/issues/837
-
That one is unrelated.
The dhcpleases error is not the one you're after. You'd want one from just dhcpd. Check the DHCP log tab.