[squid-users] SQUID Logrotate problem

From: Railic Njegos <railic.njegos_at_gmail.com>
Date: Mon, 18 Jul 2011 09:28:40 +0200

Hi all,
i have problem, after uprade CentOS 5.5 to 5.6, Logrotate don't work
on two proxy servers. I have installed :

squid-2.6.STABLE21-6.el5
logrotate-3.7.4-9.el5_5.2

On first server , squid logs never rotated, config is here

cat /etc/logrotate.d/squid
/var/log/squid/access.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
    postrotate
      /usr/sbin/squid -k rotate
    endscript
}

On second server squid logs rotated every day . Config :

/var/log/squid/access.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
    postrotate
      /usr/sbin/squid -k rotate
    endscript
}

Before upgrade i have this config and all working nice.
Can someone help me ?
Received on Mon Jul 18 2011 - 07:28:46 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 29 2011 - 12:00:02 MDT