Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148713 - long delay or hang starting and/or stopping apache2 with mod_perl
Summary: long delay or hang starting and/or stopping apache2 with mod_perl
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 16:04 UTC by Andrew Gingery
Modified: 2006-11-08 04:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gingery 2006-09-22 16:04:04 UTC
I've got a post about this in the forums as well. Once mod_perl is added in this started cropping up...

typing /etc/init.d/apache2 start

was leading to long delays or seeming permenent hangs requiring control-c to break out.

when a long delay happenes when starting apache2, I see this in a ps -Af list:
root 4539 4242 0 12:52 pts/0 00:00:00 /bin/bash /sbin/runscript.sh ./apache2 start
root 4586 4539 0 12:52 pts/0 00:00:00 /bin/bash /sbin/runscript.sh ./apache2 start

Why would there be two instances running of this from one invokation of /etc/init.d/apache2 start ?

if I start it manually from the command line like this:
apache2 -D PHP5 -D DEFAULT_VHOST -D PERL -D INFO (the location of httpd.conf is compliled in so that's all that's needed to get the server running)

it starts fine, if I then kill it with "apache2 -k stop" and start it again, again it starts up fast, I can never get a delay this way. The delay only comes up when using the rc init script "/etc/init.d/apache2 start"

Whatever is causing the delay is in the RC scripts. Could there be an issue here with having the script named the exact same thing as the executable?

Well... in /etc/init.d I just did a "cp apache2 apachectl" and tried using the exact same init script, just renamed apachectl and I can't get the delay to happen anymore. Now going back and trying a few start stops with the apache2 init script, and wammo, it starts fine, then when I try to stop it, again a massive delay. (this time oddly on the stop not a start), and yet again in Ps -Af I see two instances of the script trying to run:
root 5905 4595 0 15:23 pts/1 00:00:00 /bin/bash /sbin/runscript.sh ./apache2 stop
root 5936 5905 0 15:23 pts/1 00:00:00 /bin/bash /sbin/runscript.sh ./apache2 stop

whatever the exact bug is, it's related to the init script in /etc/init.d being named apache2 if I rename it something else, problem goes away.

perhaps I should make a bug report? I'm sucha noob tho I've never done that, will look into it. Well, that's my first bug report, hope it wasn't too bad.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-22 16:13:16 UTC
Comment out the following line in /etc/apache2/httpd.conf and try again:

LoadModule auth_digest_module            modules/mod_auth_digest.so
Comment 2 Gunar Dierigen 2006-11-08 04:32:12 UTC
(In reply to comment #1)
> Comment out the following line in /etc/apache2/httpd.conf and try again:
> 
> LoadModule auth_digest_module            modules/mod_auth_digest.so
> 

I have the same problem what Andrew described here, I tried also the workaround (renaming the rc-script): no success. 

Even without loading auth_digest_module...I have still the same problem.