Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page [SOLVED] /etc/init.d/net.eth0 stopped working
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Closed Thread
 
Thread Tools Display Modes
Old 04-17-2008   #1 (permalink)
sdimhoff
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
[SOLVED] /etc/init.d/net.eth0 stopped working

I've got a problem with /etc/init.d/net.eth0 which seems like it should be relatively easy, but I don't see where things could be going wrong (my configuration very simple). After a world update I now find that /etc/init.d/net.eth0 no longer connects to my router (dhcp setup). However, if I just call dhcpcd eth0 then I get connected straight away.

Excerpt from /etc/conf.d/net

Code:
modules_eth0=( "dhcpcd" )
modules=( "ifconfig" )
config_eth0=( "dhcp" )
Instead of assigning an ip address like usual, now I just get Backgrounding...

Code:
/etc/init.d/net.eth0 restart
 * Caching service dependencies ...                                       [ ok ]
 * Stopping eth0
 *   Bringing down eth0
 *     Stopping dhcpcd on eth0 ...                                        [ ok ]
 *     Shutting down eth0 ...                                             [ ok ]
 * Starting eth0
 *   Starting netplug on eth0 ...                                         [ ok ]
 *     Backgrounding ...
I definitly use dhcpcd and ifconfig, so don't worry about those. Any suggestions?
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline  
Old 04-18-2008   #2 (permalink)
dxqcanada
Linux Newbie
 
dxqcanada's Avatar
 
Join Date: Sep 2006
Posts: 126
Did you have netplug installed before ?

Netplug will always go into the background.

I do not know exactly what the problem is ... the only thing I can sasy is that I use ifplug instead of netplug ... and I have not had a problem with DHCP on my ethernet connections.
__________________

Men occasionally stumble over the truth,
but most of them pick themselves up
and hurry off as if nothing had happened.

Winston Churchill


... then the Unix-Gods created "man" ...
dxqcanada is offline  
Old 04-18-2008   #3 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 880
Recently, baselayout 2.x hit ~arch. If you updated it without paying attention to the emerge messages then you are going to have some problems.

Gentoo Linux Documentation -- Baselayout and OpenRC Migration Guide

If you are running in the stable branch and your baselayout is still 1.x, then ignore my post.
i92guboj is offline  
Old 04-18-2008   #4 (permalink)
sdimhoff
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
1.) Netplug has always been installed.

2.) I am running stable baselayout. (sys-apps/baselayout-1.12.11.1) Although I'm not always good about checking the build messages from portage, so it was a good suggestion.


Hopefully this will focus the issue: I suspect that the problem is that dhcp (dhcpcd) is never actually being called despite the fact that I have it in the config file. (it should default to that as well if I were to have no config file, which I have tried with no success). So, since dhcpcd is never called, I never get an ip address and so none of the other services ever start (ssh, apache, etc...) What could either be keeping dhcp from starting and/or messing it up. Especially since it works alone from the command line (dhcpcd eth0).
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline  
Old 04-18-2008   #5 (permalink)
gruven
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 341
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
Just checking, but you did run "etc-update" after updating, correct?
gruven is offline  
Old 04-18-2008   #6 (permalink)
sdimhoff
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
Yes I did run etc-update. I also tried things such as revdep-rebuild to see if some dependency had been left in the dust.

Right now I'm using a useful but poor workaround:

/etc/init.d/net.eth0 starts on boot but never connects the interface

Then since the other services depend upon net.eth0 and refuse to start, I have to call them manually with start-stop-daemon.

Thanks for all the suggestions. Hopefully someone things of something more, but otherwise I'll repost if I figure out what is happening.
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline  
Old 05-11-2008   #7 (permalink)
sdimhoff
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
I've figured out the problem, and it was quite strange. Due to user error ::cough:: I had to copy over some files from the gentoo livecd. When analysing the output from /etc/init.d/net.eth0 I noticed that netplug was always initiated, but nothing else after that was starting. While investigating netplug I noticed that it existed in /sbin, but when I looked with "emerge -s netplug" portage didn't see netplug as being installed.

By removing /sbin/netplug, /etc/init.d/net.eth0 start now worked! Just by existing, the init script tried to use netplug but since it didn't really exist in full, it prevented the rest of the script to run.
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 03:04 PM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0