* [gentoo-user] How to run dhclient on the background
@ 2008-11-23 12:20 damian
2008-11-23 13:42 ` Markos Chandras
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: damian @ 2008-11-23 12:20 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 12:20 [gentoo-user] How to run dhclient on the background damian
@ 2008-11-23 13:42 ` Markos Chandras
2008-11-23 14:23 ` Jorge Peixoto de Morais Neto
2008-11-23 22:05 ` Dan Wallis
2 siblings, 0 replies; 8+ messages in thread
From: Markos Chandras @ 2008-11-23 13:42 UTC (permalink / raw
To: gentoo-user; +Cc: damian
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 12:20 [gentoo-user] How to run dhclient on the background damian
2008-11-23 13:42 ` Markos Chandras
@ 2008-11-23 14:23 ` Jorge Peixoto de Morais Neto
2008-11-23 15:02 ` damian
2008-11-23 22:05 ` Dan Wallis
2 siblings, 1 reply; 8+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-23 14:23 UTC (permalink / raw
To: gentoo-user
On Sun, Nov 23, 2008 at 10:20 AM, damian <damian.only@gmail.com> 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=4&chap=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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 14:23 ` Jorge Peixoto de Morais Neto
@ 2008-11-23 15:02 ` damian
2008-11-23 15:54 ` Jorge Peixoto de Morais Neto
0 siblings, 1 reply; 8+ messages in thread
From: damian @ 2008-11-23 15:02 UTC (permalink / raw
To: gentoo-user
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=4&chap=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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 15:02 ` damian
@ 2008-11-23 15:54 ` Jorge Peixoto de Morais Neto
2008-11-23 17:22 ` damian
0 siblings, 1 reply; 8+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-23 15:54 UTC (permalink / raw
To: gentoo-user
On Sun, Nov 23, 2008 at 1:02 PM, damian <damian.only@gmail.com> wrote:
> 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=4&chap=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?
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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 15:54 ` Jorge Peixoto de Morais Neto
@ 2008-11-23 17:22 ` damian
0 siblings, 0 replies; 8+ messages in thread
From: damian @ 2008-11-23 17:22 UTC (permalink / raw
To: gentoo-user
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 12:20 [gentoo-user] How to run dhclient on the background damian
2008-11-23 13:42 ` Markos Chandras
2008-11-23 14:23 ` Jorge Peixoto de Morais Neto
@ 2008-11-23 22:05 ` Dan Wallis
2008-11-24 13:02 ` damian
2 siblings, 1 reply; 8+ messages in thread
From: Dan Wallis @ 2008-11-23 22:05 UTC (permalink / raw
To: gentoo-user
On 23/11/2008, damian <damian.only@gmail.com> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to run dhclient on the background
2008-11-23 22:05 ` Dan Wallis
@ 2008-11-24 13:02 ` damian
0 siblings, 0 replies; 8+ messages in thread
From: damian @ 2008-11-24 13:02 UTC (permalink / raw
To: gentoo-user
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-11-24 13:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-23 12:20 [gentoo-user] How to run dhclient on the background damian
2008-11-23 13:42 ` Markos Chandras
2008-11-23 14:23 ` Jorge Peixoto de Morais Neto
2008-11-23 15:02 ` damian
2008-11-23 15:54 ` Jorge Peixoto de Morais Neto
2008-11-23 17:22 ` damian
2008-11-23 22:05 ` Dan Wallis
2008-11-24 13:02 ` damian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox