View previous topic :: View next topic |
Author |
Message |
durty_nacho Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/995075954755175a67b0e.jpg)
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Wed May 18, 2011 11:41 am Post subject: net.wlan0 getting backgrounded on boot |
|
|
Is there a way to have network dependent services like CIFS to not only wait on network adapters to start, but also to be connected and functional? After removing net.eth0 from startup (which was causing long delays due to dhcpcd), the wireless NIC now starts and doesn't connect in time before the rest of the system is booted, causing CIFS failures. After I login things are good but I have to mount network shares manually. This is fine, but I'd like to figure out how to make it all work at boot. _________________ More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols
Last edited by durty_nacho on Wed May 18, 2011 10:40 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
VinzC Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/92679028148bc3f0ff1e99.jpg)
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed May 18, 2011 12:12 pm Post subject: |
|
|
What would you call "long delays"? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
durty_nacho Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/995075954755175a67b0e.jpg)
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Wed May 18, 2011 1:11 pm Post subject: |
|
|
It is the usual delay from eth0 trying to pull a dhcp address; I have to wait for it to timeout before the system will continue to boot. I configured ifplugd and took net.eth0 out of the default run level and it no longer starts at boot.
The problem I think is that now, for some reason, when wlan0 starts it doesn't connect in time. This causes CIFS to attempt to mount a network share that I have configured in fstab and it fails because the network isn't ready. I am not sure why having eth0 out of the run level is causing this. At first I thought that while eth0 was trying to pull a dhcp address, wlan0 was in the background connecting, but it couldn't be as it was starting after eth0. When eth0 was in the default run level, after it timed out wlan0 would start and connect right away. _________________ More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
VinzC Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/92679028148bc3f0ff1e99.jpg)
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed May 18, 2011 1:33 pm Post subject: |
|
|
The biggest question is why does eth0 time out and so wlan0. Did you notice anything special about that? or is it happening because the computer is away from any network? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
durty_nacho Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/995075954755175a67b0e.jpg)
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Wed May 18, 2011 1:36 pm Post subject: |
|
|
Yeah, I failed to mention that this is my laptop and the Ethernet adapter is not connected most of the time. So when it comes up it tries to pull a dhcp address and times out. I read somewhere that dhcpcd is supposed to be smart enough to realize its not connected, but it doesn't seem to notice. _________________ More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
durty_nacho Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/995075954755175a67b0e.jpg)
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Wed May 18, 2011 10:40 pm Post subject: |
|
|
It turns out that wlan0 is getting backgrounded at boot. How can I prevent this? _________________ More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Logicien Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/42705619553e95f9decf93.jpg)
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Wed May 18, 2011 11:15 pm Post subject: |
|
|
The --timeout 0 or -t 0 option make dhcpcd wait forever for a lease. Logically, at the same time it suppose to prevent dhcpcd to go in background. _________________ Paul |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
VinzC Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/92679028148bc3f0ff1e99.jpg)
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Thu May 19, 2011 3:21 pm Post subject: |
|
|
I would run CIFS mount commands in local.start for that's the best place I know of that gives me enough freedom for checking if the network is actually accessible or not. The reason is if dhcpcd times out it'll use APIPA — unless you tell it not to with dhcpcd option -L, of course; I don't remember the option name in Gentoo's network scripts for I completely rewrote the network handling scripts. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|