View previous topic :: View next topic |
Author |
Message |
quat Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/23232870142592f1b3fc7b.png)
Joined: 18 Sep 2004 Posts: 316
|
Posted: Tue Jan 11, 2005 11:49 am Post subject: starting apache with two interfaces |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
djnauk Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Southpark/avatar20.gif)
Joined: 11 Feb 2003 Posts: 183 Location: Caerphilly, Wales, UK
|
Posted: Tue Jan 11, 2005 12:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
quat Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/23232870142592f1b3fc7b.png)
Joined: 18 Sep 2004 Posts: 316
|
Posted: Tue Jan 11, 2005 12:45 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
foofoo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2067302622457e7055881bb.jpg)
Joined: 28 Jul 2004 Posts: 29
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|