Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Dependency question- sshd and net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 360

PostPosted: Sun Nov 03, 2013 6:21 pm    Post subject: [Solved] Dependency question- sshd and net Reply with quote

When I start up, services requiring net say they are waiting for my wired interface before starting- sshd is a good example of this. I set RC_STRICT_CHECKING=no but still getting the message. I get that the place that's giving me trouble to the depend section of the initscript- whoa other changes will trigger the computer to OK services dependent on net- for example when my wireless interface is up?

I didn't see what I am looking for in the site docs or google.

Thanks for your help!

edit: I ended up getting NetworkManager working. When it connects, it provides net and services start.

Thanks!


Last edited by dspahn on Tue Nov 19, 2013 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
PeGa!
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2005
Posts: 101
Location: Capital Federal, Buenos Aires, Argentina

PostPosted: Sun Nov 03, 2013 6:58 pm    Post subject: Reply with quote

Hi,

Is your interface configured with DHCP? What is happening to you seems to be that the DHCP negotiation is taking too long.

Can you post a start up log?
_________________
If it moves, it needs an ebuild.

Adopt an unanswered post.
Back to top
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 360

PostPosted: Sun Nov 03, 2013 9:51 pm    Post subject: Don't think its DHCP... Reply with quote

If I drop to a root prompt and run any init script with a dependency on net, even well after startup and they give the message that they are waiting for net.enps110 to start. At that point, I have an IP address and can use the internet normally, ping, etc. for some reason. RC is not starting the script until someone provides net though... Any ideas? I know this can be fixed, pretty sure I've fixed this in the distant past but it's been a couple of years since I've really wrestled with Gentoo.
Back to top
View user's profile Send private message
PeGa!
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2005
Posts: 101
Location: Capital Federal, Buenos Aires, Argentina

PostPosted: Sun Nov 03, 2013 9:58 pm    Post subject: Reply with quote

Have you tried to start that script with --debug? If your script doesn't support --debug, you can always start it adding to the first line '-x', so it will read #!/bin/bash -x.

HTH.
_________________
If it moves, it needs an ebuild.

Adopt an unanswered post.
Back to top
View user's profile Send private message
lost+found
Guru
Guru


Joined: 15 Nov 2004
Posts: 508
Location: North~Sea~Coa~s~~t~~~

PostPosted: Mon Nov 04, 2013 8:42 am    Post subject: Reply with quote

dspahn,

3 different setups might work (change it to the right interface). I also have ifplugd installed, but I guess that's not really needed, unless you power down other devices, or unplug cables.

-1- The easy way
<snip>

-2- The hard way
<snip>

-3- The ugly way
I used this for ntp-client in the past. Not adding ntp-client to a runlevel, and start it in:
/etc/conf.d/net
Code:
postup() {
   if [ ${IFVAR} = "eth0" ]; then
      /etc/init.d/ntp-client start
   fi
}



Cheers!


Update: OpenRC - Dependency behaviour.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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