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
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
|
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.
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.
and cant log the info in error.log.......