Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57351 - apache2 init.d script fails to start during normal boot but works afterwards
Summary: apache2 init.d script fails to start during normal boot but works afterwards
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
Depends on:
Reported: 2004-07-16 19:05 UTC by Heitzso
Modified: 2009-08-24 10:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Heitzso 2004-07-16 19:05:33 UTC
Stock stable gentoo apache2 init.d script
"rc-update show | grep -i apache"
shows that apache2 configured to run in default
on reboot apache2 fails with
"rc-scripts: Apache2 has detected a syntax error in your configuration files:"
in /var/log/messages BUT NOTHING after the colon, so don't know how to debug
But apache2 cranks up fine AFTER booting up with
"/etc/init.d/apache2 start"
So assume failing some dependency.
I have custom compiled JK2 connector to hook over to Tomcat
so have /etc/apache2/conf/

Reproducible: Always
Steps to Reproduce:
2.notice apache2 not running /etc/init.d/apache2 start

Actual Results:  
apache2 is running after manual startup
of /etc/init.d/apache2, but apache2 should
have started fine during reboot or left a
better message somewhere (I checked /var/log/apache2 files)

as noted under details, I had to download and compile jk2 connector
to hook over to Tomcat from apache and I wonder if that's throwing
your stock apache2 init.d script
Gentoo Base System version 1.4.16
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-,
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2200+
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
CFLAGS="-O2 -march=athlon-xp -pipe"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/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=athlon-xp -pipe"
FEATURES="autoaddcvs ccache sandbox"
USE="X aalib acpi alsa apm arts avi berkdb bonobo cdr crypt cups curl directfb
doc encode esd foomaticdb freetds gb gd gdbm gif gnome gphoto2 gpm gtk gtk2
gtkhtml guile imap imlib java jikes jpeg junit libg++ libwww mad maildir mikmod
motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl
php plotutils png postgres ppds python qt quicktime readline ruby samba sasl
scanner sdl slang soap spell ssl svga tcltk tcpd tetex tiff truetype usb wavelan
wxwindows x86 xml xml2 xmlrpc xmms xv zlib"
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-07-17 05:22:59 UTC
Please post your configuration file.
Comment 2 Chuck Short (RETIRED) gentoo-dev 2004-07-26 17:45:05 UTC
No response
Comment 3 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 20:11:36 UTC
Closing.  Please re-open if you experience this with newer apache versions in portage.
Comment 4 Kenny 2009-08-14 18:51:50 UTC
Hi, the problem is in script which does not log the problem during boot
In my situation it is unavaiable ipv6 address (assigned later by ipv6 autoconfig). 

It is possible to trace (to logfile) also error from apache2 -t ?

Thanks and best regards
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2009-08-24 10:18:14 UTC
you should let the apache init script depend on whatever init script sets up your IPv6 addresses.