[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Logrotate Problem? Rotates without .0



Hi,

first of all:

debian/testing
ii  logrotate      3.5.4-1        Log rotation utility
ii  squid          2.4.1-3        Internet Object Cache (WWW proxy cache)

And then the Problem:
logrotate called with -d in /etc/cron.daily/logrotate

And that´s what comes out: 

rotating pattern: /var/log/squid/*.log { after 1 days (2 rotations)
empty log files are rotated old logs are removed
errors will be mailed to root
rotating file /var/log/squid/access.log
log needs rotating
compressing previous log with: gzip -9 /var/log/squid/access.log.1
renaming /var/log/squid/access.log.2.gz to /var/log/squid/access.log.3.gz
renaming /var/log/squid/access.log.1.gz to /var/log/squid/access.log.2.gz
renaming /var/log/squid/access.log to /var/log/squid/access.log.1
running postrotate script
running script with arg /var/log/squid/access.log: "
                /usr/sbin/squid -k rotate
"
removing old log /var/log/squid/access.log.3.gz

You see:
rotating is done without access.log.0. This is the same for all squid
logfiles, so I include the squid logrotate file:

#
#       Logrotate fragment for squid.
#
/var/log/squid/*.log {
        daily
        compress
        delaycompress
        rotate 2
        missingok
        nocreate
        postrotate
                /usr/sbin/squid -k rotate
        endscript

I can´t see the Problem.

In squid.conf I found the following:

#       Note2, for Debian/Linux the default of logfile_rotate is
#       zero, since it includes external logfile-rotation methods.
#
#Default:
# logfile_rotate 0

Thus rotating is switched in squid itself.

Where is the point?

-- 
+ holger@sub-etha.de + http://sub-etha.de/ +



Reply to: