change logrotate to move instead of copytruncate
This commit is contained in:
parent
e0e0477e46
commit
a3a8a5ebba
@ -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
|
weekly
|
||||||
rotate 5
|
rotate 5
|
||||||
copytruncate
|
|
||||||
compress
|
compress
|
||||||
notifempty
|
notifempty
|
||||||
missingok
|
missingok
|
||||||
}
|
sharedscripts
|
||||||
/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
|
|
||||||
postrotate
|
postrotate
|
||||||
|
# Asks squid to reopen its logs. (log_rotate 0 is set in squid.conf)
|
||||||
/usr/sbin/squid -k rotate
|
/usr/sbin/squid -k rotate
|
||||||
|
# Wait a little to allow Squid to catch up before the logs is compressed
|
||||||
|
sleep 1
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 3.0.STABLE7
|
Version: 3.0.STABLE7
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -339,6 +339,9 @@ fi
|
|||||||
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
|
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Oct 08 2008 Jiri Skala <jskala@redhat.com> - 7:3.0.STABLE7-3
|
||||||
- fix #465052 - FTBFS squid-3.0.STABLE7-1.fc10
|
- fix #465052 - FTBFS squid-3.0.STABLE7-1.fc10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user