Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 90636

Summary: apache2 won't start without network
Product: Gentoo Linux Reporter: Clock <clock>
Component: Current packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Clock 2005-04-27 10:13:45 UTC
When you have like laptop roaming within various WiFi networks and network configuration
is done manually after startup, apache won't start up during boot.

To fix this, requires net and requires netmount has to be commented out in /etc/init.d/apache2

Reproducible: Always
Steps to Reproduce:
1.disconnect network
2.reboot machine
3.

Actual Results:  
apache2 is not running

Expected Results:  
apache2 is running

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686)
================================================================= System uname:
2.6.11-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.50GHz Gentoo Base System
version 1.4.16 Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11
2005, 15:25:47)] dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf
/etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer
-pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache
distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi
berkdb bitmap-fonts cdr crypt cups curl emboss encode esd fam foomaticdb fortran
gdbm gif gpm gtk gtk2 guile imagemagick imap imlib ipv6 java jpeg kde ldap libg++
libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline ruby samba sdl slang spell
ssl svga tcltk tcpd tetex tiff tls truetype truetype-fonts type1-fonts vorbis
xml2 xmms xv zlib" Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-04-27 14:22:56 UTC
RC_NET_STRICT_CHECKING="none" or "lo" in /etc/conf.d/rc should solve this (needs ~arch baselayout).
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-08-20 01:51:29 UTC
*** Bug 103109 has been marked as a duplicate of this bug. ***
Comment 3 Clock 2005-08-20 02:31:41 UTC
The same happens with /etc/init.d/apache2 stop when the network cable is removed.
This time it's the apachectl itself which hangs. I suggest checking if the
DNS lookup can be turned off by some flag and if not, then
a) making a gentoo-specific patch to get rid of this Apache's bloatware
behaviour, or
b) Writing Apache people to fix it, or
c) Try apachectl and if it doesn't end in 3 seconds, killing it and if it
doesn't die within 2 seconds, killing it with -9
Comment 4 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-17 19:51:29 UTC
This isn't realistic.

Apache is a network service, and meant for running while connected to a
fuctional network, not just localhost.

If after you boot a network becomes available, it's not difficult to run
/etc/init.d/apache2 start. In fact, I believe there are tools out there to do
certain things when a wireless connection becomes available.