dhcpd-4.3.6 works only when launched with -f or -d flag
Mariusz Madej
m.madej at xtrack.pl
Tue Mar 5 06:03:04 UTC 2019
Hi,
> So how are you starting dhcpd *as a daemon*. Systemd?
I start it from console so far, just without -f and -d flags(it goes
background then). I have a plan to launch hotspot from my own
configuration tool later.
> What does the command line look like?
/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf
dhcpd.conf file looks like this:
# cat /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.5.0 netmask 255.255.255.0 {
range 192.168.5.10 192.168.5.100;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.5.255;
option routers 192.168.5.4;
option domain-name-servers 8.8.8.8, 8.8.4.4, 1.1.1.1;
option domain-name "mydomain.org";
}
Regards
Mariusz
On 02/03/19 13:16, Bill Shirley wrote:
> So how are you starting dhcpd *as a daemon*. Systemd?
>
> What does the command line look like?
> [0:root at bb8 ~]$ ps aux | grep dhcpd
> root 20586 0.0 0.0 119524 1004 pts/3 S+ 06:14 0:00 grep
> --color=auto dhcpd
> dhcpd 22665 0.0 0.0 139796 26832 ? Ss Feb27 0:13
> /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd
> --no-pid
> dhcpd 31924 0.0 0.0 141492 28936 ? Ss Feb13 0:24
> /usr/sbin/dhcpd -f -6 -cf /etc/dhcp/dhcpd6.conf -user dhcpd -group
> dhcpd --no-pid
>
>
> Bill
>
> On 3/1/2019 1:10 AM, m.madej at xtrack.pl wrote:
>>
>> Hello
>>
>> I try to run dhcpd on my wifi network. I build it using Yocto and
>> here are a versions of my built system:
>>
>> kernel: 4.14
>>
>> dhcpd: 4.3.6
>>
>> bind: 9.10.6-r0
>>
>> everything is running on cortex a5 core (sama5d27 processor)
>>
>> When i run dhcpd manually with -d or -f option (debug or foreground)
>> everything seems to work fine. But when dhcpd is started as daemon it
>> does not work at all.
>>
>> I run strace and it seems it hangs on: "futex(0xb6913098,
>> FUTEX_WAIT_PRIVATE, 0, NULL"
>>
>> I found a bug with similar behaviour here
>> https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551855 but
>> as i understand it should be fixed in version i use.
>>
>> Does someone have any idea?
>>
>> Thanks in advance
>>
>> Regards
>> Mariusz Madej
>>
>> _______________________________________________
>> 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/20190305/297483b5/attachment-0001.html>
More information about the dhcp-users
mailing list