]> git.pld-linux.org Git - packages/apache.git/commitdiff
- don't hide messages written during configuration file syntax check
authorbszx <bszx@pld-linux.org>
Sat, 29 Oct 2005 15:20:22 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.init -> 1.45

apache.init

index 72fe83c6098147473eff6280e371ab05c4993fdb..8002345db65d7014795b6b498e2c08008ca83d70 100644 (file)
@@ -82,14 +82,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.045772 seconds and 4 git commands to generate.