Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295916 - www-servers/apache incorrect error message in initscript
Summary: www-servers/apache incorrect error message in initscript
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-06 00:04 UTC by Kobboi
Modified: 2010-03-07 11:49 UTC (History)
0 users

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 Kobboi 2009-12-06 00:04:47 UTC
Apache does not start due to a missing library. In the init script this is incorrectly called "a syntax error in your configuration files"

	if [ $ret -ne 0 ]; then
		eerror "${SVCNAME} has detected a syntax error in your configuration files:"
		${APACHE2} ${APACHE2_OPTS} -t
	fi


Reproducible: Always
Comment 1 Rafał Mużyło 2009-12-06 02:11:11 UTC
Last time I checked, initscripts were not supposed
to do revdep-rebuild's job.
Comment 2 Kobboi 2009-12-06 17:01:54 UTC
Last time I checked, error messages were supposed to be correct. There are probably a trillion reasons for apache2 returning non-zero that have nothing to do with syntax errors in configuration files.
Comment 3 Rafał Mużyło 2009-12-06 21:13:39 UTC
Would a message: "apache has failed to start for a mysterious reason"
satisfy you ?
If your system is in good state, syntax errors are the most likely
reason of failure.
If it fails to run due to missing libraries, it means you've failed
to revdep-rebuild.
Comment 4 Kobboi 2009-12-06 22:26:21 UTC
I apologize for trying to improve something. Please disregard my comments.
Comment 5 michael@smith-li.com 2009-12-08 00:43:11 UTC
(In reply to comment #4)
> I apologize for trying to improve something. Please disregard my comments.

Please don't assume that the other poster is representing Gentoo. If you would like to submit a patch for the configuration file, this bug may be better received.
Comment 6 Rafał Mużyło 2009-12-08 17:14:49 UTC
I may not be representing Gentoo, but still
implementing whatever revdep-rebuild does to detect
broken linking *in an init script* doesn't look like a good idea.
Comment 7 Kobboi 2009-12-08 18:50:31 UTC
All I was saying is that a nonzero return value does not automatically imply a syntax error in the configuration file. I don't know a lot of init-scripts that do more than a simple check if the service could be started or not. It is up to the user to find out why something has failed. Claiming that it is a syntax error in the configuration file seems to be unfounded. I just stumbled upon it during a library issue, I'm not saying that an init script should detect something like that.
Comment 8 Benedikt Böhm (RETIRED) gentoo-dev 2010-03-07 11:49:17 UTC
fixed in 2.2.15, thanks