dhcp3 fails to start during boot-time but starts seamlessly invoking the init-script manually
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcp3 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The dhcpd of dhcp3-server does not start up on bootup. It fails in case 3 of the check_status function after it invoked the start-stop-daemon.
I don't know exactly what the "if read pid < "$DHCPDPID .." does though. Anyway, it's a case where the pid-file has been created but the process is non-existend.
Now the oddity. Run from the shell it works seamlessly.
I have no idea what causes this. I checked permissions, reinstalled, whatever.
One possibility is that it is somehow dependant on the INTERFACES variable. That it fails because one of the specified devices isn't up yet. But there's no suspicious output from the dhcpd in the logs.
My configuration is:
ddns-update-style interim;
ddns-domainname "home";
option domain-name "home";
default-lease-time 3600; # seconds
max-lease-time 7200; # seconds
log-facility local7;
# for now, accept them
# deny unknown-clients;
# Wired network
subnet 192.168.128.0 netmask 255.255.255.0 {
range 192.168.128.11 192.168.128.254;
option subnet-mask 255.255.255.0;
option routers 192.168.128.1;
option broadcast-address 192.168.128.255;
option domain-name-servers 192.168.128.1;
}
# Wireless network
subnet 192.168.129.0 netmask 255.255.255.0 {
range 192.168.129.11 192.168.129.254;
option subnet-mask 255.255.255.0;
option routers 192.168.129.1;
option broadcast-address 192.168.129.255;
# NOTE: different subnet!
option domain-name-servers 192.168.128.1;
}
The /etc/default/
INTERFACES="eth0 ath0"
The ifconfig -a output is:
ath0 Link encap:Ethernet HWaddr 00:14:78:70:D6:96
inet addr:192.168.129.1 Bcast:192.
inet6 addr: fe80::214:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)
eth0 Link encap:Ethernet HWaddr 00:80:AD:78:B3:5B
inet addr:192.168.128.1 Bcast:192.
inet6 addr: fe80::280:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2511 errors:0 dropped:0 overruns:0 frame:0
TX packets:3304 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:278108 (271.5 KiB) TX bytes:2657761 (2.5 MiB)
eth1 Link encap:Ethernet HWaddr 00:00:1C:D5:FA:CE
inet6 addr: fe80::200:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2926 errors:0 dropped:0 overruns:0 frame:0
TX packets:2123 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2613788 (2.4 MiB) TX bytes:238198 (232.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4530 errors:0 dropped:0 overruns:0 frame:0
TX packets:4530 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:422574 (412.6 KiB) TX bytes:422574 (412.6 KiB)
ppp0 Link encap:Point-
inet addr:80.146.127.186 P-t-P:217.0.116.129 Mask:255.
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2760 errors:0 dropped:0 overruns:0 frame:0
TX packets:1951 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2543012 (2.4 MiB) TX bytes:184747 (180.4 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
tun0 Link encap:UNSPEC HWaddr 00-00-00-
inet addr:192.168.130.1 P-t-P:192.168.130.2 Mask:255.
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wifi0 Link encap:UNSPEC HWaddr 00-14-78-
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:277
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:396 (396.0 b) TX bytes:3050 (2.9 KiB)
The dhcp.log is free of errors. dhcpd -.t returns no errors.
I hope this is of any help. This is extremely annyoing...
tags: | added: patch |
One more thing I just noticed:
After the "--" mark in the commandline of start-stop-daemon "-pf" and "-q" is used but I do not see those options documented in man dhcpd3.