Package: logrotate
Version: 3.7.1-5
Severity: normal
This system is running under VMware Server.
The problem occured after we upgraded squid to the lenny-backports version
(3.1.3-2). Log files currently rotate, but it appears that squid3 -k rotate
is never run. I check on the server about 8 AM (Logrotate runs at 6:25 AM I
think), and squid is writing its logs to /var/log/squid3/access.log.1 . If I
run /etc/init.d/squid3 reload it creates the access.log file and begins
writing to it.
The contents of the /etc/logrotate.d/squid3 file are:
#
# Logrotate fragment for squid3.
#
/var/log/squid3/*.log {
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
postrotate
test ! -e /var/run/squid3.pid || /usr/sbin/squid3 -k rotate
endscript
}
I've verified that /var/run/squid3.pid exists. If I move the
/var/log/squid3/access.log to /var/log/squid3/access.log.test and then run
/usr/bin/squid3 -k rotate, squid stops writing to the old log file and then
will create a new /var/log/squid3/access.log and begin writing to it.
-- Package-specific info:
Contents of /etc/logrotate.d
total 24
-rw-r--r-- 1 root root 84 2009-04-20 14:54 apt
-rw-r--r-- 1 root root 79 2008-12-04 20:51 aptitude
-rw-r--r-- 1 root root 111 2010-01-12 05:42 dpkg
-rw-r--r-- 1 root root 151 2007-09-29 05:44 iptraf
-rw-r--r-- 1 root root 515 2009-02-07 18:19 rsyslog
-rw-r--r-- 1 root root 226 2010-07-29 08:20 squid3
-- System Information:
Debian Release: 5.0.5
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages logrotate depends on:
ii base-passwd 3.5.20 Debian base system master password
ii cron 3.0pl1-105 management of regular background p
ii libc6 2.7-18lenny4 GNU C Library: Shared libraries
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libselinux1 2.0.65-5 SELinux shared libraries
Versions of packages logrotate recommends:
pn mailx <none> (no description available)
logrotate suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]