]> git.pld-linux.org Git - packages/apache.git/commitdiff
- add flush-logs target auto/ac/apache1-1_3_34-9 auto/ac/apache1-1_3_35-1 auto/ac/apache1-1_3_36-1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 16 Mar 2006 14:25:42 +0000 (14:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1.init -> 1.22

apache1.init

index d4b6725b19b5fa1dd4beb8cf0309e556d3326c42..742c168ae70fa8ed37552105dc9a60c6c1ce08a6 100644 (file)
@@ -122,13 +122,28 @@ case "$1" in
                        killproc apache -USR1
                else
                        fail
-                       echo "Configuration file syntax test failed."
+                       echo >&2 "Configuration file syntax test failed."
                fi
        else
                msg_not_running apache >&2
                RETVAL=7
        fi
        ;;
+  flush-logs)
+       if [ -f /var/lock/subsys/apache ]; then
+               msg_reloading apache
+
+               apache -t > /dev/null 2>&1
+               RETVAL=$?
+               if [ $RETVAL -eq 0 ]; then
+                       killproc apache -USR1
+                       RETVAL=$?
+               else
+                       fail
+                       echo >&2 "Configuration file syntax test failed."
+               fi
+       fi
+       ;;
   configtest)
        apache -t
        ;;
This page took 0.035463 seconds and 4 git commands to generate.