]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache1.init
- uhoh, in most cases you need to set at least ServerName
[packages/apache1.git] / apache1.init
index d4b6725b19b5fa1dd4beb8cf0309e556d3326c42..ef23b7bf3751504731cd462ee189aeb6a250c363 100644 (file)
@@ -108,7 +108,7 @@ case "$1" in
                        echo "Configuration file syntax test failed."
                fi
        else
-               msg_not_running apache >&2
+               msg_not_running apache
                RETVAL=7
        fi
        ;;
@@ -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
+               msg_not_running apache
                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.036731 seconds and 4 git commands to generate.