change logrotate to move instead of copytruncate

This commit is contained in:
Henrik Nordström 2008-10-09 11:47:06 +00:00
parent e0e0477e46
commit a3a8a5ebba
2 changed files with 9 additions and 23 deletions

View File

@ -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
}

View File

@ -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 @@ fi
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
%changelog
* Thu Oct 09 2008 Henrik Nordstrom <henrik@henriknordstrom.net> - 7:3.0.STABLE7-4
- change logrotate to move instead of copytruncate
* Wed Oct 08 2008 Jiri Skala <jskala@redhat.com> - 7:3.0.STABLE7-3
- fix #465052 - FTBFS squid-3.0.STABLE7-1.fc10