FS#18767 - [apache] Don't redirect apachectl to /dev/null on /etc/rc.d/httpd

Attached to Project: Arch Linux
Opened by Linas (Linas) - Saturday, 20 March 2010, 22:54 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 23 June 2010, 10:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
/etc/rc.d/httpd shouldn't redirect stderr to /dev/null since if something fails, apachectl will place there the error message.


Steps to reproduce:
Introduce a syntax error into /etc/httpd/conf/httpd.conf
eg. Include conf/extra/missing.conf

Issue an /etc/rc.d/httpd restart
The command fails, but there's no clue in the logs.

As opposed of not redirecting stderr, where there will be a verbose message like:
httpd: Syntax error on line 12345 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/extra/missing.conf: No such file or directory

It may not be even needed to redirect stdout, it seems to be low importance errors (the process was already started), but I leave that bit up to the maintainer.
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 23 June 2010, 10:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in svn. I don't consider this important enough to do a rebuild, as system administrators should do apachectl configtest anyways before trying to solve anything.
Comment by xyx (imagelife) - Saturday, 24 April 2010, 13:22 GMT
i also have this problem,apache version is 2.2.15-2 , i cant start httpd service ,
and cant log the info in error.log.......

Loading...