SOURCES: squid.logrotate - rotate access.log and other logs separa...
glen
glen at pld-linux.org
Fri Jan 19 16:34:52 CET 2007
Author: glen Date: Fri Jan 19 15:34:51 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- rotate access.log and other logs separately to allow setting different rotating policy
---- Files affected:
SOURCES:
squid.logrotate (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SOURCES/squid.logrotate
diff -u SOURCES/squid.logrotate:1.6 SOURCES/squid.logrotate:1.7
--- SOURCES/squid.logrotate:1.6 Sun Nov 4 04:49:18 2001
+++ SOURCES/squid.logrotate Fri Jan 19 16:34:46 2007
@@ -1,11 +1,26 @@
-/var/log/squid/[asc]*.log {
+/var/log/squid/access*.log {
olddir /var/log/archiv/squid
weekly
rotate 4
+# dateext
compress
create 660 root squid
postrotate
# signal Squid to restart logging with the new files
/usr/sbin/squid -k rotate
endscript
+ sharedscripts
+}
+
+/var/log/squid/[sc]*.log {
+ olddir /var/log/archiv/squid
+ weekly
+ rotate 4
+ compress
+ create 660 root squid
+ postrotate
+ # signal Squid to restart logging with the new files
+ /usr/sbin/squid -k rotate
+ endscript
+ sharedscripts
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/squid.logrotate?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list