Log files should be rotated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid-deb-proxy (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
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/
I copied and adapted /etc/logrotate.
/var/log/
daily
compress
rotate 2
missingok
nocreate
prerotate
endscript
postrotate
endscript
}
This seems to work as it should on my system.
I'm not sure about the /usr/sbin/
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://
100 /var/lib/
0.3.1 0
500 http://
Changed in squid-deb-proxy (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
Confirmed.
I am using a bit more modern log rotate file on a Debian system as follows (The reference to Sarge is gone).
# squid-deb- proxy/* .log { squid-deb- proxy.pid || /usr/sbin/squid -f /etc/squid- deb-proxy/ squid-deb- proxy.conf -k rotate
# Logrotate fragment for squid-deb-proxy.
#
/var/log/
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
postrotate
test ! -e /var/run/
endscript
}