apache/rc.apache

Git Service User git at kolabsys.com
Mon Mar 28 13:21:51 CEST 2011


 apache/rc.apache |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

New commits:
commit f1e6568f70116d226b3ffa375ce300e42d7e5b6f
Author: Christoph Wickert <wickert at kolabsys.com>
Date:   Mon Mar 28 13:03:34 2011 +0200

    apache: kolab/issue4377: make sure logfiles are rotated

diff --git a/apache/rc.apache b/apache/rc.apache
index 4506ca0..cafd94d 100644
--- a/apache/rc.apache
+++ b/apache/rc.apache
@@ -5,18 +5,24 @@
 
 %config
     apache_enable="$openpkg_rc_def"
-    apache_log_files="@l_prefix@/var/apache/log/access.log"
+    apache_log_files="@l_prefix@/var/apache/log/apache-access.log"
     apache_log_rotsteps="10"
     apache_log_rotminsize="10M"
     apache_log_rotcomplevel="9"
     apache_log_rotprolog="true"
     apache_log_rotepilog="true"
-    apache_err_files="@l_prefix@/var/apache/log/error.log"
+    apache_err_files="@l_prefix@/var/apache/log/apache-error.log"
     apache_err_rotsteps="10"
     apache_err_rotminsize="1M"
     apache_err_rotcomplevel="9"
     apache_err_rotprolog="true"
     apache_err_rotepilog="true"
+    apache_php_err_files="@l_prefix@/var/apache/log/php-errors.log"
+    apache_php_err_rotsteps="10"
+    apache_php_err_rotminsize="1M"
+    apache_php_err_rotcomplevel="9"
+    apache_php_err_rotprolog="true"
+    apache_php_err_rotepilog="true"
     apache_cgi_files="@l_prefix@/var/apache/log/script.log"
     apache_cgi_rotsteps="10"
     apache_cgi_rotminsize="1M"
@@ -84,6 +90,12 @@
         -E "$apache_err_rotepilog; echo 1 >$hintfile" \
         ${apache_err_files}
     shtool rotate -f \
+        -n ${apache_php_err_rotsteps} -s ${apache_err_rotminsize} -d \
+        -z ${apache_php_err_rotcomplevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
+        -P "$apache_php_err_rotprolog" \
+        -E "$apache_php_err_rotepilog; echo 1 >$hintfile" \
+        ${apache_php_err_files}
+    shtool rotate -f \
         -n ${apache_cgi_rotsteps} -s ${apache_cgi_rotminsize} -d \
         -z ${apache_cgi_rotcomplevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
         -P "$apache_cgi_rotprolog" \





More information about the commits mailing list