]> git.pld-linux.org Git - packages/apache.git/commitdiff
- fix output for configration check, merge flush-logs with reload
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 8 May 2009 09:46:57 +0000 (09:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.init -> 1.65

apache.init

index a69b244fe8b26d0d6e089f39878b4ba4e896e3b2..598aac14f67ec0cb662cb6adf90c941a2e52a955 100644 (file)
@@ -99,34 +99,22 @@ case "$1" in
   try-restart)
        condrestart 0
        ;;
-  reload|force-reload|graceful)
+  reload|force-reload|graceful|flush-logs)
        if [ -f /var/lock/subsys/httpd ]; then
                configtest
                if [ $RETVAL -eq 0 ]; then
-                       msg_reloading "$SVC_NAME"
-                       busy
+                       msg_reloading "$SVC_NAME"; busy
                        /usr/sbin/httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS -k graceful
                        RETVAL=$?
                        [ $RETVAL -eq 0 ] && ok || fail
-               fi
-       else
-               msg_not_running "$SVC_NAME"
-               RETVAL=7
-       fi
-       ;;
-  flush-logs)
-       if [ -f /var/lock/subsys/httpd ]; then
-               msg_reloading "$SVC_NAME"
-
-               configtest
-               if [ $RETVAL -eq 0 ]; then
-                       /usr/sbin/httpd.${HTTPD_MPM} $CFG -k graceful
-                       RETVAL=$?
-                       [ $RETVAL -eq 0 ] && ok || fail
                else
+                       show "Checking configuration"; busy
                        fail
                        echo >&2 "Configuration file syntax test failed. Run $0 configtest to see errors."
                fi
+       else
+               msg_not_running "$SVC_NAME"
+               RETVAL=7
        fi
        ;;
   configtest)
This page took 0.095834 seconds and 4 git commands to generate.