LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-31-2005, 09:27 PM   #1
patrickclay
Member
 
Registered: May 2004
Location: San Antonio
Distribution: Slackware, Gentoo
Posts: 35

Rep: Reputation: 15
dhcpcd stalling new application startup


Hello! My name is Patrick Clay and I am running Gentoo Linux on my Dell 8600 laptop.

The problem I am having is as follows:

when dhcpcd is running, any application that I attemp to start will wait 20-30 seconds before starting up.

I am pretty sure it is dhcpcd causing the problem because if i execute "killall dhcpcd" all the programs that were waiting to start immediately start up.

How can I fix this? Am I connecting to the Internet the improper way?

The way I connect to the Internet is configuring my wireless card (using ipw2200 for driver, btw) with iwconfig, using ifconfig to get eth1 up, then using 'dhcpcd eth1' to get an ip address.

Thanks for any suggestions in getting this issue resolved.
 
Old 08-31-2005, 09:33 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
That's odd, since I do nearly the same thing with my Gentoo laptop (though it is an ndiswrapper driver). What kind of applications do you get these issues with? What if you execute apps from the command line?
 
Old 08-31-2005, 09:57 PM   #3
patrickclay
Member
 
Registered: May 2004
Location: San Antonio
Distribution: Slackware, Gentoo
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks for the quick reply!

If a run gnome-terminal the busy cursor will show for about 20 seconds then disappear.

If I already have a terminal open and i run a command (such as gaim) nothing will happen for about 20 seconds then the program will start up as normal and function properly. The same applies to ethereal, gedit, nautilus, etc.

The way I 'fix' it is to use Ctrl+Alt+F1, log in as root, kill dhcpcd, switch back and everything is back to normal.
 
Old 08-31-2005, 10:53 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What about non-GUI apps? If you already have a terminal open and run, say, nano, how is the startup time there? I have a weird hunch this may be something DNS related, but I would think that would be anytime you are connected, not just with dhcpcd actively running.
 
Old 08-31-2005, 11:03 PM   #5
patrickclay
Member
 
Registered: May 2004
Location: San Antonio
Distribution: Slackware, Gentoo
Posts: 35

Original Poster
Rep: Reputation: 15
non-GUI apps work great in an already running terminal

For example, I use the commands joe and emerge and they work fine.
 
Old 09-01-2005, 09:30 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
very odd. Do you get any messages in the terminal if you try to launch a GUI app from there?
 
Old 09-01-2005, 09:36 AM   #7
patrickclay
Member
 
Registered: May 2004
Location: San Antonio
Distribution: Slackware, Gentoo
Posts: 35

Original Poster
Rep: Reputation: 15
I don't receive any messages. It is just a long pause before everything starts up as normal.
 
Old 09-09-2005, 12:54 AM   #8
patrickclay
Member
 
Registered: May 2004
Location: San Antonio
Distribution: Slackware, Gentoo
Posts: 35

Original Poster
Rep: Reputation: 15
I think I found a solution...

the command I use to bring up my wireless interface is:

dhcpcd eth1

since for whatever reason my sytem isn't liking dhcpcd i add the option -p to dhcpcd, bring up my wireless interface, then kill dhcpcd.
the -p option allows dhcpcd to be terminated yet it doesn't bring down the interface with it. So now my wireless start-up script looks like this:

dhcpcd -p eth1
killall dhcpcd

So basically the dhcp daemon gets an ipaddress then gets out of the way. So far it's working great!

Thanks for the insight everyone! (Special thanks to McClain!)

I can see this causing a problem when a dhcp server requires a renew but right now that is less of a hassle to deal with than having to kill and restart dhcpcd everytime i want to start a new application.

The lesser of two evils, folks! :-)

Last edited by patrickclay; 09-09-2005 at 12:58 AM.
 
Old 09-09-2005, 10:55 AM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I'm glad it's working for you now. If you ever figure out the root cause of the problem, let us know. (Why your system doesn't like dhcpcd)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using dhcpcd on gentoo slows down application startup in KDE drowstar Linux - Networking 1 07-29-2005 12:59 PM
k(g)dm won't start when dhcpcd happens during startup ricalicious Linux - Software 0 01-27-2005 11:02 PM
Adding dhcpcd to startup? drache777 Linux - Newbie 6 01-18-2005 08:44 PM
stalling on pcmcia at startup ehawk Linux - Software 2 09-07-2004 10:54 PM
Dhcpcd at startup dr_van_nostrand Linux - Networking 4 04-15-2003 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration