OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 22-Jun-2007 19:36:08
Branch: HEAD Handle: 2007062218360800
Modified files:
openpkg-src/apache rc.apache
Log:
rotate the script.log, too
Summary:
Revision Changes Path
1.25 +12 -0 openpkg-src/apache/rc.apache
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/apache/rc.apache
============================================================================
$ cvs diff -u -r1.24 -r1.25 rc.apache
--- openpkg-src/apache/rc.apache 22 Jun 2007 10:54:02 -0000 1.24
+++ openpkg-src/apache/rc.apache 22 Jun 2007 17:36:08 -0000 1.25
@@ -17,6 +17,12 @@
apache_err_rotcomplevel="9"
apache_err_rotprolog="true"
apache_err_rotepilog="true"
+ apache_cgi_files="@l_prefix@/var/apache/log/script.log"
+ apache_cgi_rotsteps="10"
+ apache_cgi_rotminsize="1M"
+ apache_cgi_rotcomplevel="9"
+ apache_cgi_rotprolog="true"
+ apache_cgi_rotepilog="true"
%common
apache_pidfile="@l_prefix@/var/apache/run/apache.pid"
@@ -75,6 +81,12 @@
-P "$apache_err_rotprolog" \
-E "$apache_err_rotepilog; echo 1 >$hintfile" \
${apache_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" \
+ -E "$apache_cgi_rotepilog; echo 1 >$hintfile" \
+ ${apache_cgi_files}
if [ -s $hintfile ]; then
@l_prefix@/sbin/apache -k graceful
fi
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]