* [gentoo-user] net.eth0 device initiated services
@ 2007-01-03 10:04 Mihamina Rakotomandimby
2007-01-03 11:23 ` Nelson, David (ED, PAR&D)
0 siblings, 1 reply; 11+ messages in thread
From: Mihamina Rakotomandimby @ 2007-01-03 10:04 UTC (permalink / raw
To: Gentoo mailing list
Hi,
I have /etc/init.d/net.eth0.
I dont want it to be launch at boot, but I dont want to delete it either
because it eases some things when I want to bring eth0 up.
My problem is although i "del" it from the boot process with rc-update,
net.eth0 is attempted to be brought up by some other tool.
When no cable is plugged, it slows as hell the boot process.
The message is "device initiated services: net.eth0".
Then bringing up attempt comes.
who the hell is trying to bring it up?
The answer is here:
http://www.linuxquestions.org/questions/showthread.php?p=2520311
/etc/conf.d/rc
- RC_PLUG_SERVICES=""
+ RC_PLUG_SERVICES="!net.*"
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [gentoo-user] net.eth0 device initiated services
2007-01-03 10:04 [gentoo-user] net.eth0 device initiated services Mihamina Rakotomandimby
@ 2007-01-03 11:23 ` Nelson, David (ED, PAR&D)
2007-01-03 12:05 ` Matt Richards
2007-01-03 13:05 ` Neil Bothwick
0 siblings, 2 replies; 11+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-03 11:23 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: Mihamina Rakotomandimby
> [mailto:mihamina.rakotomandimby@etu.univ-orleans.fr]
> Sent: 03 January 2007 10:04
> To: Gentoo mailing list
> Subject: [gentoo-user] net.eth0 device initiated services
>
>
> Hi,
> I have /etc/init.d/net.eth0.
> I dont want it to be launch at boot, but I dont want to
> delete it either
> because it eases some things when I want to bring eth0 up.
>
> My problem is although i "del" it from the boot process with
> rc-update,
> net.eth0 is attempted to be brought up by some other tool.
>
> When no cable is plugged, it slows as hell the boot process.
>
> The message is "device initiated services: net.eth0".
> Then bringing up attempt comes.
> who the hell is trying to bring it up?
>
> The answer is here:
> http://www.linuxquestions.org/questions/showthread.php?p=2520311
>
> /etc/conf.d/rc
>
> - RC_PLUG_SERVICES=""
> + RC_PLUG_SERVICES="!net.*"
>
> --
> gentoo-user@gentoo.org mailing list
>
>
I tend to set the eth0 dhcpcd timeout at ~5 seconds. The DHCP server I
usually use (the gentoo based server under my desk!) always responds
within 5 seconds. When I'm out and about and using/"borrowing" a
wireless connection it means that it only slows the boot process by 5
seconds and doesnt require me to manually enable or disable eth0.
David
Note: These views are my own, advice is provided with no guarantee of
success. I do not represent anyone else in any emails I send to this
list.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] net.eth0 device initiated services
2007-01-03 11:23 ` Nelson, David (ED, PAR&D)
@ 2007-01-03 12:05 ` Matt Richards
2007-01-03 12:43 ` Nelson, David (ED, PAR&D)
2007-01-03 13:05 ` Neil Bothwick
1 sibling, 1 reply; 11+ messages in thread
From: Matt Richards @ 2007-01-03 12:05 UTC (permalink / raw
To: gentoo-user
Nelson, David (ED, PAR&D) wrote:
>> -----Original Message-----
>> From: Mihamina Rakotomandimby
>> [mailto:mihamina.rakotomandimby@etu.univ-orleans.fr]
>> Sent: 03 January 2007 10:04
>> To: Gentoo mailing list
>> Subject: [gentoo-user] net.eth0 device initiated services
>>
>>
>> Hi,
>> I have /etc/init.d/net.eth0.
>> I dont want it to be launch at boot, but I dont want to
>> delete it either
>> because it eases some things when I want to bring eth0 up.
>>
>> My problem is although i "del" it from the boot process with
>> rc-update,
>> net.eth0 is attempted to be brought up by some other tool.
>>
>> When no cable is plugged, it slows as hell the boot process.
>>
>> The message is "device initiated services: net.eth0".
>> Then bringing up attempt comes.
>> who the hell is trying to bring it up?
>>
>> The answer is here:
>> http://www.linuxquestions.org/questions/showthread.php?p=2520311
>>
>> /etc/conf.d/rc
>>
>> - RC_PLUG_SERVICES=""
>> + RC_PLUG_SERVICES="!net.*"
>>
>> --
>> gentoo-user@gentoo.org mailing list
>>
>>
>>
>
> I tend to set the eth0 dhcpcd timeout at ~5 seconds. The DHCP server I
> usually use (the gentoo based server under my desk!) always responds
> within 5 seconds. When I'm out and about and using/"borrowing" a
> wireless connection it means that it only slows the boot process by 5
> seconds and doesnt require me to manually enable or disable eth0.
>
> David
>
> Note: These views are my own, advice is provided with no guarantee of
> success. I do not represent anyone else in any emails I send to this
> list.
>
>
it might be a nice idea to look into how knoppix backgrounds the dhcp
process and implement that into Gentoo's init,
i think i did get annoyed with the dhcp process taking ages a few years
back and just put a '&' at the end of the dhcp line, i cant remember if
this worked or not tho.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [gentoo-user] net.eth0 device initiated services
2007-01-03 12:05 ` Matt Richards
@ 2007-01-03 12:43 ` Nelson, David (ED, PAR&D)
0 siblings, 0 replies; 11+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-03 12:43 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: Matt Richards [mailto:matt@mattstone.net]
> Sent: 03 January 2007 12:06
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] net.eth0 device initiated services
>
-- snip --
> it might be a nice idea to look into how knoppix backgrounds the dhcp
> process and implement that into Gentoo's init,
> i think i did get annoyed with the dhcp process taking ages a
> few years
> back and just put a '&' at the end of the dhcp line, i cant
> remember if
> this worked or not tho.
Does this not then delay services depending on net.eth0? Although it
would perhaps make sense to do init scripts in the order:
1) Everything needed to get eth0 up
2) net.eth0
3) Non network reliant stuff
4) Network reliant stuff
If this makes sense ... ;>
David
Note: These views are my own, advice is provided with no guarantee of
success. I do not represent anyone else in any emails I send to this
list.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] net.eth0 device initiated services
2007-01-03 11:23 ` Nelson, David (ED, PAR&D)
2007-01-03 12:05 ` Matt Richards
@ 2007-01-03 13:05 ` Neil Bothwick
2007-01-03 13:21 ` Nelson, David (ED, PAR&D)
2007-01-11 17:52 ` [gentoo-user] " »Q«
1 sibling, 2 replies; 11+ messages in thread
From: Neil Bothwick @ 2007-01-03 13:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
On Wed, 3 Jan 2007 11:23:28 -0000, Nelson, David \(ED, PAR&D\) wrote:
> I tend to set the eth0 dhcpcd timeout at ~5 seconds. The DHCP server I
> usually use (the gentoo based server under my desk!) always responds
> within 5 seconds. When I'm out and about and using/"borrowing" a
> wireless connection it means that it only slows the boot process by 5
> seconds and doesnt require me to manually enable or disable eth0.
Or you could emerge ifplugd, then the startup scripts won't try to
initialise eth0 if no cable is detected.
--
Neil Bothwick
"Bother," said Pooh, as he put his finger in the mains socket.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [gentoo-user] net.eth0 device initiated services
2007-01-03 13:05 ` Neil Bothwick
@ 2007-01-03 13:21 ` Nelson, David (ED, PAR&D)
2007-01-03 18:04 ` Dan
2007-01-11 17:52 ` [gentoo-user] " »Q«
1 sibling, 1 reply; 11+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-03 13:21 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: Neil Bothwick [mailto:neil@digimed.co.uk]
> Sent: 03 January 2007 13:06
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] net.eth0 device initiated services
>
-- snip --
> Or you could emerge ifplugd, then the startup scripts won't try to
> initialise eth0 if no cable is detected.
>
>
> --
> Neil Bothwick
Ah, never knew that existed. Thanks :)
David
Note: These views are my own, advice is provided with no guarantee of
success. I do not represent anyone else in any emails I send to this
list.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] net.eth0 device initiated services
2007-01-03 13:21 ` Nelson, David (ED, PAR&D)
@ 2007-01-03 18:04 ` Dan
0 siblings, 0 replies; 11+ messages in thread
From: Dan @ 2007-01-03 18:04 UTC (permalink / raw
To: gentoo-user
you can name the kernels in /boot anything, so long as the name is
referenced in /boot/grub/grub.conf correctly.
you can decrease the boot time by giving your dhcp client a timeout
value in seconds. I use 10 seconds for my desktops, because if my
dhcpserver isn't responding by then, it's probably broken.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [gentoo-user] net.eth0 device initiated services
@ 2007-01-04 2:45 Adam Carter
0 siblings, 0 replies; 11+ messages in thread
From: Adam Carter @ 2007-01-04 2:45 UTC (permalink / raw
To: gentoo-user
> Or you could emerge ifplugd, then the startup scripts won't try to
> initialise eth0 if no cable is detected.
Another alternative is netplug. I don't know how they compare, but I'm
using netplug sucessfully.
http://www.red-bean.com/~bos/netplug/README
Rgs,
Adam
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: net.eth0 device initiated services
2007-01-03 13:05 ` Neil Bothwick
2007-01-03 13:21 ` Nelson, David (ED, PAR&D)
@ 2007-01-11 17:52 ` »Q«
2007-01-14 9:35 ` Mick
1 sibling, 1 reply; 11+ messages in thread
From: »Q« @ 2007-01-11 17:52 UTC (permalink / raw
To: gentoo-user
Neil Bothwick <neil@digimed.co.uk> wrote:
> you could emerge ifplugd, then the startup scripts won't try to
> initialise eth0 if no cable is detected.
Is there something like this which will bring my wireless connection up
or down depending on whether the device is found? (My laptop has a
hardware switch to turn the wireless card on/off).
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: net.eth0 device initiated services
2007-01-11 17:52 ` [gentoo-user] " »Q«
@ 2007-01-14 9:35 ` Mick
2007-01-14 10:42 ` Neil Bothwick
0 siblings, 1 reply; 11+ messages in thread
From: Mick @ 2007-01-14 9:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 818 bytes --]
On Thursday 11 January 2007 17:52, »Q« wrote:
> Neil Bothwick <neil@digimed.co.uk> wrote:
> > you could emerge ifplugd, then the startup scripts won't try to
> > initialise eth0 if no cable is detected.
>
> Is there something like this which will bring my wireless connection up
> or down depending on whether the device is found? (My laptop has a
> hardware switch to turn the wireless card on/off).
I have a USB WiFi adaptor which is picked up and initialised by ifplugd
everytime I plug it in. I assume that the same will happen when you turn
your wireless card on/off.
I am not sure what happens when I have both an ethernet cable plugged in and
the WiFi adaptor. I guess both will come up but which one is going to be
used by applications to connect to the Internet?
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: net.eth0 device initiated services
2007-01-14 9:35 ` Mick
@ 2007-01-14 10:42 ` Neil Bothwick
0 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2007-01-14 10:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
On Sun, 14 Jan 2007 09:35:04 +0000, Mick wrote:
> I am not sure what happens when I have both an ethernet cable plugged
> in and the WiFi adaptor. I guess both will come up but which one is
> going to be used by applications to connect to the Internet?
I use the preup() function in /etc/conf.d/net to take my wireless
interface down when the wired interface is brought up.
preup() {
if [ ${IFACE} == "eth0" ]; then
/etc/init.d/net.eth1 --quiet status && /etc/init.d/net.eth1 pause fi
return 0
}
--
Neil Bothwick
KPLA: Warrior's Radio! All the glory, all the time!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-01-14 10:48 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-03 10:04 [gentoo-user] net.eth0 device initiated services Mihamina Rakotomandimby
2007-01-03 11:23 ` Nelson, David (ED, PAR&D)
2007-01-03 12:05 ` Matt Richards
2007-01-03 12:43 ` Nelson, David (ED, PAR&D)
2007-01-03 13:05 ` Neil Bothwick
2007-01-03 13:21 ` Nelson, David (ED, PAR&D)
2007-01-03 18:04 ` Dan
2007-01-11 17:52 ` [gentoo-user] " »Q«
2007-01-14 9:35 ` Mick
2007-01-14 10:42 ` Neil Bothwick
-- strict thread matches above, loose matches on Subject: below --
2007-01-04 2:45 [gentoo-user] " Adam Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox