View previous topic :: View next topic |
Author |
Message |
brianakee Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Funny_Figure/senior2.gif)
Joined: 16 Aug 2002 Posts: 78
|
Posted: Fri May 07, 2004 10:17 pm Post subject: dhcpd Fails: Process Dies |
|
|
Kernel 2.6.5
Sun Ultra5
net-misc/dhcp-3.0_p2-r6
Interesting behavior noted with dhcpd. I can start the server fine. I get startup messages in /var/log/messages, and ps ax shows:
Code: |
15302 ? Ss 0:00 /usr/sbin/dhcpd -pf /var/run/dhcp/dhcpd.pid -q -user dhcp -group dhcp eth0
|
When I try to get an IP from this system the process dies. I see no error messages in the log file. I can find no core files on the system.
Here are my configs:
/etc/dhcp/dhcpd.conf
Code: |
ddns-update-style none;
authoritative;
subnet 10.10.111.0 netmask 255.255.255.0 {
range 10.10.111.100 10.10.111.110;
option routers 10.10.111.1;
option domain-name "domain.local";
option domain-name-servers 10.10.111.1;
default-lease-time 600;
max-lease-time 7200;
}
|
/etc/conf.d/dhcp
Code: |
IFACE="eth0"
DHCPD_OPTS=""
|
Any ideas?
TM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Mon May 10, 2004 10:32 am Post subject: |
|
|
just an idea: what are your build options (found in /etc/make.conf)
try rebuilding the thing (dhcpd) with maximum -O2 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo_2.gif)
Joined: 13 Apr 2003 Posts: 260 Location: Under a rock.
|
Posted: Mon May 10, 2004 2:21 pm Post subject: |
|
|
i had a similar thing with dhcpd dying, i found it was an issue with the permissions of the /var/lib/dhcp/dhcpd.leases file - it couldn't write the new leases and thus bailed on me. Check your logs to check what happens when dhcp bails. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
weyhan Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/332941373424ef130dba05.jpg)
Joined: 27 May 2003 Posts: 245
|
Posted: Mon May 10, 2004 4:19 pm Post subject: |
|
|
The only differentses I see between your config and mine is, yours is missing a broadcast-address option in the /etc/dhcp/dhcpd.conf file.
Code: | option broadcast-address xxx.xxx.xxx.xxx |
You might want to try that. Other than that, I have no idea.
HTH _________________ Han. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
brianakee Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Funny_Figure/senior2.gif)
Joined: 16 Aug 2002 Posts: 78
|
Posted: Fri May 14, 2004 5:03 am Post subject: |
|
|
sorry for the delay.
nielchiano:
Code: | CFLAGS="-Os -mcpu=ultrasparc -pipe -fomit-frame-pointer" |
I wonder if the -Os optimization setting is causing this? This is my first time using it. This ultra5 is shy on precious memory resources. I thought this might help it along a little.
I actually have it running on another system with the following CFLAGS:
Code: | CFLAGS="-O3 -march=pentium2 -pipe -fomit-frame-pointer" |
It seems to work ok here, but I wish to remove it from this system.
weyhan:
I will try the broadcast-address option. I would not think that this would cause it to crash, however I have seen stranger things.
Mit:
The weird thing is that the process just seems to crash. I do not get anything in the logs (at least not in /var/log) after it crashes. I also cannot find any core dumps (via find / -name core*). The process just vanishes. In any case, the dhcpd.leases file is owned by dhcp:dhcp with 644 permissions. I may try tweaking the permissions a little to see if this helps.
Thanks for the input!
TM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Fri May 14, 2004 7:21 am Post subject: |
|
|
brianakee wrote: |
nielchiano:
Code: | CFLAGS="-Os -mcpu=ultrasparc -pipe -fomit-frame-pointer" |
I wonder if the -Os optimization setting is causing this? This is my first time using it. This ultra5 is shy on precious memory resources. I thought this might help it along a little.
|
just try without any optimization flag. Usualy they do what they're supposed to do, optimize; but sometimes they change the code too much and brake things... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|