The Apache2 init.d script has a dependancy on mysql to force mysql to load before Apache so web applications that use MySQL as a backend work straight away instead of having to wait until MySQL loads. It should have a dependancy on PostgreSQL as well. Current line in depend() use mysql dns logger netmount Proposed line use postgresql mysql dns logger netmount
Please post the output of emerge --info
Portage 2.0.50-r6 (hardened-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5) ================================================================= System uname: 2.6.5 i686 VIA Nehemiah Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -pipe -mmmx -msse -mfpmath=sse -fprefetch-loop-arrays -f omit-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe -mmmx -msse -mfpmath=sse -fprefetch-loop-arrays -fomit-frame-pointer -fstack-protector -finline-functions" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://www.ibiblio.org/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X509 acl apache2 berkdb chroot crypt cups fam gd-external gif imap ipv6 jpe g libwww maildir mcal mmx nls nogcj nptl pam perl php pic png pnp postgres pytho n readline samba sasl spell sse ssl tcpd threads tiff truetype usb x86 xml zlib"
Sorry, I should have been more clear. I mean the depend() function in /etc/init.d/apache2 and NOT any dependency in the ebuild.
hmmm.. apparently apache2 doesn't have a postgres useflag... I sense more patches than I had anticipated comming...
Ok, I read that wrong. Apache isn't supposed to have mysql/postgres deps, I think my focus came back to where it needs to be :). I'm currently trying to put out a patch to fix your issue. I'm testing it right now to make sure the patch is being applied. I'll also have a modified ebuild up for that too.
Created attachment 30498 [details] Apache 2.0.49-r1 Modified ebuild
Created attachment 30499 [details, diff] Postgres apache2 init.d fix
This is what I have for now. The patch does get the job done, but I would have prefered something cleaner. I was going to do something alot cleaner but ran out of time so I posted what did work. I still would prefer an apache dev to look it over and maybe suggest a better place for the patch to be applied at, or could patch in the source itself with all the other patches ( a much cleaner method I think ). I will be gone until tommorow evening ( GMT -8 PST time ), so I won't be as prompt about the fix as I normally am :). Apache 2.0.49-r1 ebuild should go in: /usr/portage/net-www/apache Postgres apache2 init.d fix should go in: /usr/portage/net-www/apache/files
Nice :) Hope to see it in Portage soon!
What changes did you make to the apache ebuild? If you did make any changes please submit a patch. Thanks
I have added postgres to the init scripts - chuck
Im not going to add your patch since I have already added it to the initscripts.