On Thu, Jan 27, 2011 at 09:04:34AM +0100, Carsten Otto wrote:
> according to the logrotate man page the script is executed after
> compression: "The sharedscripts means that the postrotate script will
> only be run once (after the old logs have been com‐ pressed) [...]".
> This was the case with lenny, but is not with squeeze. As a result at
> the time of the script execution I see log.1 instead of log.1.gz.
> 
> Please fix the man page or revert the change of order.

Have you got a logrotate.conf script that exhibits this behaviour?

>From my reading of the source code, there should not be any change in
this behaviour between versions.

My suspicion is that you have "delaycompress" set:

       delaycompress
              Postpone compression of the previous log file to the next  rota‐
              tion  cycle.  This only has effect when used in combination with
              compress.  It can be used when some program cannot  be  told  to
              close  its logfile and thus might continue writing to the previ‐
              ous log file for some time.

-- 
Paul Martin <p...@debian.org>



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to