rpms/squid/devel squid.logrotate,1.1,1.2 squid.spec,1.105,1.106

Henrik Nordström hno at fedoraproject.org
Thu Oct 9 11:47:36 UTC 2008


Author: hno

Update of /cvs/pkgs/rpms/squid/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8522

Modified Files:
	squid.logrotate squid.spec 
Log Message:
change logrotate to move instead of copytruncate



Index: squid.logrotate
===================================================================
RCS file: /cvs/pkgs/rpms/squid/devel/squid.logrotate,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- squid.logrotate	9 Sep 2004 12:36:11 -0000	1.1
+++ squid.logrotate	9 Oct 2008 11:47:06 -0000	1.2
@@ -1,31 +1,14 @@
-/var/log/squid/access.log {
+/var/log/squid/access.log /var/log/squid/store.log /var/log/squid/cache.log {
     weekly
     rotate 5
-    copytruncate
     compress
     notifempty
     missingok
-}
-/var/log/squid/cache.log {
-    weekly
-    rotate 5
-    copytruncate
-    compress
-    notifempty
-    missingok
-}
-
-/var/log/squid/store.log {
-    weekly
-    rotate 5
-    copytruncate
-    compress
-    notifempty
-    missingok
-# This script asks squid to rotate its logs on its own.
-# Restarting squid is a long process and it is not worth
-# doing it just to rotate logs
+    sharedscripts
     postrotate
+      # Asks squid to reopen its logs. (log_rotate 0 is set in squid.conf)
       /usr/sbin/squid -k rotate
+      # Wait a little to allow Squid to catch up before the logs is compressed
+      sleep 1
     endscript
 }


Index: squid.spec
===================================================================
RCS file: /cvs/pkgs/rpms/squid/devel/squid.spec,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- squid.spec	8 Oct 2008 20:23:20 -0000	1.105
+++ squid.spec	9 Oct 2008 11:47:06 -0000	1.106
@@ -4,7 +4,7 @@
 
 Name:     squid
 Version:  3.0.STABLE7
-Release:  3%{?dist}
+Release:  4%{?dist}
 Summary:  The Squid proxy caching server
 Epoch:    7
 License:  GPLv2+
@@ -339,6 +339,9 @@
     chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
 
 %changelog
+* Thu Oct 09 2008 Henrik Nordstrom <henrik at henriknordstrom.net> - 7:3.0.STABLE7-4
+- change logrotate to move instead of copytruncate
+
 * Wed Oct 08 2008 Jiri Skala <jskala at redhat.com> - 7:3.0.STABLE7-3
 - fix #465052 -  FTBFS squid-3.0.STABLE7-1.fc10
 




More information about the scm-commits mailing list