Re: [gentoo-user] How to run dhclient on the background
I had a similar problem with my machine when I first started using Gentoo, but I then discovered sys-apps/netplug. Install that and all should be well. You might want to check your RC_NET_STRICT_CHECKING variable (in /etc/conf.d/rc) is the way you want it, but otherwise there isn't any extra configuration required. I realise you've already got your original problem sorted, but hopefully this helps others. Thanks for the tip Dan.
Re: [gentoo-user] How to run dhclient on the background
On Sunday 23 November 2008 14:20:51 damian wrote: Hello, When I boot my computer I don't want to wait for the dhcp client (in my case dhclient) to acquire a lease to continue the booting process. Instead, I would like that the client could be run in the background (as a daemon) right after it is invoked. Reading through the man pages of dhclient it seems like I need to pass the -nw flag to the client. However. I can't find how to do this. Any help is welcomed. It seems like I'm the only one with this issue (I don't think so) because I can't find in the internet information about this. Thanks in advance, Damian. Just a couple of thoughts that come in my mind 1) Try to modify the init scrit under /etc/init.d/ to pass the arguments you want 2) Or just remove the init script with rc-update command and put the client in /etc/conf.d/local.start Something like dhclient eth0 If you have any question please ask :) -- Markos Chandras
Re: [gentoo-user] How to run dhclient on the background
On Sun, Nov 23, 2008 at 10:20 AM, damian [EMAIL PROTECTED] wrote: Hello, When I boot my computer I don't want to wait for the dhcp client (in my case dhclient) to acquire a lease to continue the booting process. Instead, I would like that the client could be run in the background (as a daemon) right after it is invoked. Reading through the man pages of dhclient it seems like I need to pass the -nw flag to the client. However. I can't find how to do this. Any help is welcomed. It seems like I'm the only one with this issue (I don't think so) because I can't find in the internet information about this. Thanks in advance, Damian. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=3#doc_chap3 Also, in my computer xdm seems to start before net.eth0. In fact, it seems that net.eth0 is not needed for my desktop $ sudo /etc/init.d/net.eth0 needsme gkrellmd netmount pydoc-2.5 samba sshd svnserve transmission-daemon net -- Software is like sex: it is better when it is free - Linus Torvalds
Re: [gentoo-user] How to run dhclient on the background
Hi again, Thank you all for your responses. After I sent my first email I modified the rc config to boot in parallel. The boot process was faster after that: just for the record, it takes 20 secs in a core 2 duo laptop to drop the login prompt without X, wireless supplicant, cron daemon or sound. I will also take a look at ifplug/netplug. Thanks for the tip. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=3#doc_chap3 Sorry but I already looked into that page, but I couldn't find the information I'm looking for. Could you be more explicit? Best regards, Damian.
Re: [gentoo-user] How to run dhclient on the background
You wanted to pass options to your dhcp client. The page mentioned shows two ways of doing that: 1) By setting the variable dhcp_eth0 to a space-delimited string of options, like dhcp_eth0=release nodns nontp nonis These generic options work for any of the dhclient, dhcpcd, pump and udhcpc clients. 2) By setting ${CLIENTNAME}_eth0 to a space-delimited string of options, you can pass any option to your specific client If you want to pass the -nw option to the dhclient client for the eth0 interface, you would write dhclient_eth0=-nw All this configuration goes in /etc/conf.d/net (at least for baselayout 1.12.12; I don't know about baslayout 2.0.0) Thanks Jorge! I overlooked that. Sorry. Best regards, Damian.
Re: [gentoo-user] How to run dhclient on the background
On 23/11/2008, damian [EMAIL PROTECTED] wrote: Hello, When I boot my computer I don't want to wait for the dhcp client (in my case dhclient) to acquire a lease to continue the booting process. Instead, I would like that the client could be run in the background (as a daemon) right after it is invoked. Reading through the man pages of dhclient it seems like I need to pass the -nw flag to the client. However. I can't find how to do this. Any help is welcomed. It seems like I'm the only one with this issue (I don't think so) because I can't find in the internet information about this. Thanks in advance, Damian. Hi Damian I had a similar problem with my machine when I first started using Gentoo, but I then discovered sys-apps/netplug. Install that and all should be well. You might want to check your RC_NET_STRICT_CHECKING variable (in /etc/conf.d/rc) is the way you want it, but otherwise there isn't any extra configuration required. I realise you've already got your original problem sorted, but hopefully this helps others. Dan