Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499248 - www-servers/apache-2.4.6 - init script fails to catch startup error
Summary: www-servers/apache-2.4.6 - init script fails to catch startup error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-25 16:21 UTC by Toralf Förster
Modified: 2014-02-19 18:13 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 Toralf Förster gentoo-dev 2014-01-25 16:21:29 UTC
Soemtimes I do get during boot :
 * Starting apache2 ...
AH00557: apache2: apr_sockaddr_info_get() failed for n22
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
 * start-stop-daemon: failed to start `/usr/sbin/apache2'
 [ ok ]


But the "[ok]" is wrong. An attempt to start Apache2 gives

n22 /etc/apache2 # /etc/init.d/apache2 start
 * WARNING: apache2 has already been started


but apache1 isn't running, just after a restart it works well :


n22 /etc/apache2 # /etc/init.d/apache2 restart
 * apache2 not running (no pid file)
 * Starting apache2 ...                                                                       [ ok ]


I think the init script should consider at least the pid file too for a decision if the service is up or not.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-19 08:26:39 UTC
Can you please check if /etc/init.d/apache has the following patch applied:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-servers/apache/files/gentoo-apache-2.2.23-initd_fixups.patch?revision=1.2

If it's not applied please re-emerge apache and try again.
Comment 2 Toralf Förster gentoo-dev 2014-02-19 18:13:35 UTC
well - works now with 2.4.7 - thx.