Red Hat Bugzilla – Bug 53291
syntax check for initscript would be useful.
Last modified: 2007-03-26 23:48:34 EDT
Description of Problem: The following fragment of code would allow someone to check changes before doing a reload and possibly taking apache off line. syntax) echo -n "Checking httpd syntax: " module_args=`moduleargs` echo "Running ${httpd} -t $module_args" error=`${httpd} -t $moduleargs 2>&1` RETVAL=$? if [ $RETVAL = 0 ] then echo "Syntax ok" else echo "Syntax error:" echo $error fi ;; Version-Release number of selected component (if applicable): apache-1.3.20-15
Thanks for the report. This bug is no longer present in the Apache httpd 2.0 packages in Red Hat Enterprise Linux and Fedora Core. "service httpd configtest"