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

Bug 377667

Summary: www-servers/apache-2.2.17 - /etc/init.d/apache2 fails to restart or stop after being started
Product: Gentoo Linux Reporter: Tadas <tadas.subonis>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tadas 2011-08-04 08:01:45 UTC
After I start apache with /etc/init.d/apache2 start it fails to stop with "stop" or restart with "restart"


# /etc/init.d/apache2 restart
 * Starting apache2 ...
httpd (pid 15088) already running                                                                                                                                      [ !! ]
 * ERROR: apache2 failed to start



# /etc/init.d/apache2 stop
 * WARNING: apache2 is already stopped


But it is running!

Reproducible: Always




/etc/init.d/apache2: http://paste.pocoo.org/show/452407/
/etc/conf/apache2: http://paste.pocoo.org/show/452408/
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-08-04 08:46:07 UTC
please do not CC arches on your own
Comment 2 Wormo (RETIRED) gentoo-dev 2011-08-05 06:38:13 UTC
When submitting bugs, attach your supporting files to your report instead of using pastebin services (otherwise important parts of your bug report disappears after a while).

Now regarding your problem -- if you run 'apache2 -k stop' at the command line, does apache eventually stop? If so, how long? I'm suspicious that the 'TIMEOUT=1' line in the checkconfd() function of init script is not long enough.