Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] [Shutdown] ifplugd fails to stop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tifauv
n00b
n00b


Joined: 27 Jan 2006
Posts: 13
Location: Angers, France

PostPosted: Mon Aug 21, 2006 9:31 pm    Post subject: [SOLVED] [Shutdown] ifplugd fails to stop Reply with quote

_o/ Hi all !

Since I updated baselayout, a problem occurs when shutting down my laptop. The shutdown process seems to go well but it fails after "Service hostname stopped" with a red message saying "ifplugd can't stop". And then nothing happens, it can stay like this forever (well, I only gave him one hour) without halting.

If I manually stop the ifplugd processes (for eth0 and ath0) before shutting down, there is no error message but it stops at the same level (Service hostname stopped) and doesn't halt either.

I guess I did something wrong when merging the config files, but I don't know the init and network scripts enough to find out what happens...

Thanks in advance !


Last edited by Tifauv on Wed Aug 23, 2006 8:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
zaphyr
Guru
Guru


Joined: 07 Dec 2004
Posts: 312
Location: Copenhagen, Denmark

PostPosted: Tue Aug 22, 2006 7:08 am    Post subject: Reply with quote

I have the same problem, it stops after hostname.
I have to press ctrl+c to force it to continue
this is on a amd64 box, on my x86 laptop I have no problems. They are both using the latest baselayout

perhaps we can re-emerge an older baselayout and see if that helps? I am not at my computer atm, so I can't try it right now
_________________
emerge IQ
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 22, 2006 11:40 am    Post subject: Reply with quote

Try removing ifplugd from your runlevels - baselayout supports it internally now.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Tifauv
n00b
n00b


Joined: 27 Jan 2006
Posts: 13
Location: Angers, France

PostPosted: Tue Aug 22, 2006 12:18 pm    Post subject: Reply with quote

UberLord wrote:
Try removing ifplugd from your runlevels - baselayout supports it internally now.

Thanks, I'll try that when I get back home.
Back to top
View user's profile Send private message
Tifauv
n00b
n00b


Joined: 27 Jan 2006
Posts: 13
Location: Angers, France

PostPosted: Tue Aug 22, 2006 6:44 pm    Post subject: Reply with quote

Well, removing ifplugd from the runlevels didn't change anything ; except that I get
Code:
WARNING:  net.eth0 has started but is inactive
as the last message on tty1. I don't have the login prompt on tty1.

rc-status when logged in KDE gives me the following services as still in state starting :

  • ntp-client
  • sshd
  • cupsd
  • local
  • vixie-cron
  • wlanconfig.ath0
  • net.ath0
  • netmount

It seems that wlanconfig.ath0 is blocking all the others, so I tried to remove it. I get a lot of error messages about ath0 not existing (the pcmcia card is not plugged in), cupsd & Co not started. It's ugly but at least the boot completes to the login prompt.

It's on a laptop with eth0 (wired) and ath0 (wireless pcmcia card).
Here is an extract of /etc/conf.d/rc :
Code:
 RC_PARALLEL_STARTUP="yes"
RC_INTERACTIVE="no"
RC_HOTPLUG="yes"
RC_COLDPLUG="yes"
RC_PLUG_SERVICES=""
RC_NET_STRICT_CHECKING="no"
RC_DOWN_INTERFACE="yes"

I'm starting with eth0 cable plugged and without the pcmcia card.

PS: I udapted to latest baselayout-1.12.4-r7
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 22, 2006 7:13 pm    Post subject: Reply with quote

Tifauv wrote:


  • wlanconfig.ath0

It seems that wlanconfig.ath0 is blocking all the others, so I tried to remove it.


Great. If that's wlanconfig - the madwifi tool to create interfaces then please stop using it (as in the init script - you can use wlanconfig in preup() functons in conf.d/net) as it seriously blows chunks.
The madwifi devs graciously allow proper behavior these days and an ath0 interface should be created for you automatically without any need for it.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Tifauv
n00b
n00b


Joined: 27 Jan 2006
Posts: 13
Location: Angers, France

PostPosted: Tue Aug 22, 2006 10:38 pm    Post subject: Reply with quote

Thanks, it starts better now.

But one problem remains. When booting, the services netmount, net-client and sshd don't start because net.ath0 fails (the card is not plugged, so it should fail, but perhaps more silently) :
Code:
ERROR:  net.ath0 failed to start
ERROR:  cannot start netmount because net.ath0 could not start
ERROR: netmount failed to start
ERROR:  cannot start ntp-client because net.ath0 could not start
ERROR: ntp-client failed to start
ERROR:  cannot start sshd because net.ath0 could not start
ERROR: sshd failed to start
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 22, 2006 10:47 pm    Post subject: Reply with quote

OK, now install and configure wpa_supplicant
That does the same for wireless as ifplugd does for wired :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Tifauv
n00b
n00b


Joined: 27 Jan 2006
Posts: 13
Location: Angers, France

PostPosted: Tue Aug 22, 2006 11:39 pm    Post subject: Reply with quote

It is already, and it works well when I plug the card in. WPA PSK again, at last.
But I still get the messages even if the cable is plugged on eth0...
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 23, 2006 6:46 am    Post subject: Reply with quote

So you probably have a positive value for association / timeout. Remove this and net.ath0 will background. Then the services will be scheduled to start when either ath0 or eth0 does.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Tifauv
n00b
n00b


Joined: 27 Jan 2006
Posts: 13
Location: Angers, France

PostPosted: Wed Aug 23, 2006 8:06 pm    Post subject: Reply with quote

\o/ It works !

Thanks a lot...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum