Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
starting apache with two interfaces
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
quat
Guru
Guru


Joined: 18 Sep 2004
Posts: 316

PostPosted: Tue Jan 11, 2005 11:49 am    Post subject: starting apache with two interfaces Reply with quote

Hi,

I have two inetrfaces: eth0 (wired, static ip) and wlan (wireless, dhcp)
I'm also using apache and spamd. when I'm connect to wifi net and have disconnected eth0 (unplugged) I have problem with routing, so stop /etc/init.d/net.eth0.

The problem is that during shutting down eth0 apache and spamd are also shutting (wlan is connected to AP so there is even an access to internet). When I start apache after that, one more time eth0 is starting.

The only solution is to shut both eth0 and wlan, start wlan and then apache and spamd.

is there any other solution, more proper/elegant?
_________________
a mind is like a parachute, it's better when it's open
Back to top
View user's profile Send private message
djnauk
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 183
Location: Caerphilly, Wales, UK

PostPosted: Tue Jan 11, 2005 12:36 pm    Post subject: Reply with quote

What is the startup script called for the wireless portion? Is it net.eth1? Apache and spamd have dependencies on the net script, which requires, by default, at least one net.*, besides net.lo, to be up and running for any net dependent to be allowed to run.

If you only have net.eth0 and wireless is a different script, when you take down net.eth0 down, all dependents will be taken down with it.

If it is of the net.* range, check /etc/conf.d/rc and make sure that RC_NET_STRICT_CHECKING is set to no, so that at least one net.* will keep the net script up.

Code:
# Set to "yes" if the default behaviour of at least one net.*
# service starting beside net.lo is NOT enouth to consider
# the 'net' dependency up and running.

RC_NET_STRICT_CHECKING="no"

_________________
Jonathan Wright (Technical Director, JAB Web Solutions)

UK Hosting & Reseller Hosting from JAB Web Solutions
Back to top
View user's profile Send private message
quat
Guru
Guru


Joined: 18 Sep 2004
Posts: 316

PostPosted: Tue Jan 11, 2005 12:45 pm    Post subject: Reply with quote

djnauk wrote:
What is the startup script called for the wireless portion? Is it net.eth1?
net.wlan.

djnauk wrote:
Apache and spamd have dependencies on the net script...
Yes, I know. I figured out ;)

djnauk wrote:
If it is of the net.* range, check /etc/conf.d/rc and make sure that RC_NET_STRICT_CHECKING is set to no, so that at least one net.* will keep the net script up.
I've checked and it's set to "no".

Any other ideas?
_________________
a mind is like a parachute, it's better when it's open
Back to top
View user's profile Send private message
foofoo
n00b
n00b


Joined: 28 Jul 2004
Posts: 29

PostPosted: Sun Jan 21, 2007 2:00 am    Post subject: see this post Reply with quote

https://forums.gentoo.org/viewtopic-p-3856289.html#3856289

S'il vous plaît
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