]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.init
- up to 2.0.59
[packages/apache.git] / apache.init
index 72fe83c6098147473eff6280e371ab05c4993fdb..fe83adda65bbb608999d4281d0bc6be8ca9c6350 100644 (file)
@@ -81,15 +81,12 @@ case "$1" in
        ;;
   reload|force-reload|graceful)
        if [ -f /var/lock/subsys/httpd ]; then
-               msg_reloading httpd.${HTTPD_MPM}
-               httpd.${HTTPD_MPM} $CFG -t > /dev/null 2>&1
+               run_cmd "Checking httpd.${HTTPD_MPM} configuration" httpd.${HTTPD_MPM} $CFG -t
                RETVAL=$?
                if [ $RETVAL -eq 0 ]; then
+                       msg_reloading httpd.${HTTPD_MPM}
                        daemon httpd.${HTTPD_MPM} $CFG -k graceful
                        RETVAL=$?
-               else
-                       fail
-                       echo "Configuration file syntax test failed."
                fi
        else
                msg_not_running httpd.${HTTPD_MPM} >&2
This page took 0.033328 seconds and 4 git commands to generate.