You are not logged in.

#1 2012-08-19 13:58:43

silentsnake
Member
Registered: 2012-02-23
Posts: 57

[SOLVED] dhcpcd goes to background to soon

Hi guys,

for some time now, my dhcp client daemon forks to background before it actually gets the ip address from the server. This speeds up the boot process but other daemons depending on a established network connection won't start correctly. (For example ddclient, samba and ntpd) Stopping and starting these services manually usually solves the problem, but it would be better if they would work right from the start.

It is the default configuration, i did not make any chances to it. I tried to add -B to /etc/conf.d/dhcpd but then it will stop on 'Starting network…' because it seems to never go to background, even after getting the ip. Is there an option to wait only for the successful ip lease?

My daemons array looks like this
DAEMONS=(syslog-ng network crond ntpd ddclient sshd samba)

I'm using dhcpcd 5.6.0-1 and initscripts 2012.08.2-1.

Thank you! smile

Edit: Marked as solved and changed dhcpd to dhcpcd.

Last edited by silentsnake (2012-08-22 23:41:57)

Offline

#2 2012-08-21 13:15:48

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,491

Re: [SOLVED] dhcpcd goes to background to soon

Your post title and text mix dhcpd and dhcpcd. Pretty sure you just mean the later. The option you ask for is "--waitip" then. Not sure it will help though as other users struggle with it also currently. Give it a go.

Offline

#3 2012-08-22 23:40:57

silentsnake
Member
Registered: 2012-02-23
Posts: 57

Re: [SOLVED] dhcpcd goes to background to soon

You are perfectly right, I ment the client daemon. Sorry! Tried --waitip and it looks like that this has solved the problem. smile Thanks a lot for your help! smile

Offline

Board footer

Powered by FluxBB