Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180788 - net-www/apache-2.2 -M outputs to stderr not stdout
Summary: net-www/apache-2.2 -M outputs to stderr not stdout
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-06-03 19:59 UTC by Caleb Cushing
Modified: 2007-06-03 20:58 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2007-06-03 19:59:34 UTC
when I run apache2 -M (A new command line option -M has been added that lists all modules that are loaded based on the current configuration. Unlike the -l option, this list includes DSOs loaded via mod_so.) it puts out to stderr not stdout. I don't believe this is standard behavior as multiple people have told me that it displayes on stdout.

this makes it difficult to grep (or pipe to other commands). however apache2 -M 2>&1 | grep allows me to grep through it's output.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-03 20:02:27 UTC
Already said we are going to stick this functionality into the initscript; if you want it changed, ask upstream.

*** This bug has been marked as a duplicate of bug 180692 ***
Comment 2 Caleb Cushing 2007-06-03 20:07:57 UTC
not everything belongs in an initscript. I really don't feel that this does. I opened a new bug because I figured out why I was having problems and determined that it was non standard behavior from normal httpd. even though having something similar come out of the init script would be nice the normal command should still work as expected. not having it work as expected makes it extremely difficult to accomplish work, because I don't know if I can expect apache2 to behave as apache's documentation says it should. you can do the work on the init script but it should behave elsewhere as well.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-03 20:14:36 UTC
The ask upstream to fix it, please.
Comment 4 Caleb Cushing 2007-06-03 20:31:00 UTC

upstream request. determining whether this is standard behavior or not. if they say it is not I'm re-opening this.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-06-03 20:58:26 UTC
(In reply to comment #4)
> upstream request. determining whether this is standard behavior or not. if they
> say it is not I'm re-opening this.

You can check yourself in the tarball (modules/mappers/mod_so.c - line 359 and below).