Public bug reported:
Binary package hint: squid-deb-proxy
At the moment, the log files for squid-deb-proxy are not rotated.
As a result, the log files in /var/log/squid-deb-proxy will grow unnecessary
large (40 MB+ on my small home network). I don't think it's needed to keep
logfiles for months.
I copied and adapted /etc/logrotate.d/squid to rotate the logs for
squid-deb-proxy:
/var/log/squid-deb-proxy/*.log {
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
prerotate
test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports
endscript
postrotate
test ! -e /var/run/squid-deb-proxy.pid || /usr/sbin/squid -f
/etc/squid-deb-proxy/squid-deb-proxy.conf -k rotate
endscript
}
This seems to work as it should on my system.
I'm not sure about the /usr/sbin/sarg-reports part, but that file does not
exist on my system so that part doesn't do anything.
lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
apt-cache policy squid-deb-proxy
squid-deb-proxy:
Installed: 0.3.1.0.1
Candidate: 0.3.1.0.1
Version table:
*** 0.3.1.0.1 0
500 http://nl.archive.ubuntu.com/ubuntu/ lucid-updates/universe Packages
100 /var/lib/dpkg/status
0.3.1 0
500 http://nl.archive.ubuntu.com/ubuntu/ lucid/universe Packages
** Affects: squid-deb-proxy (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/718923
Title:
Log files should be rotated
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs