Re: logrotate and bzip2, bz2 on woody stable rotation problem [solved]
On Wed, Sep 01, 2004 at 03:52:36PM -0400, xavier wrote:
>
> Hi, I've a problem with logrotate and bzip2,
> logrotate wont rotate my file !...
>
>
> $ logrotate -v :
>
> rotating file /var/log/syslog
> log needs rotating
> compressing previous log with: /usr/bin/bzip2 --best '/var/log/syslog.1'
> bzip2: Output file /var/log/syslog.1.bz2 already exists.
> failed to compress previous log /var/log/syslog.1
> file /var/log/syslog.401.bz2 doesn't exist -- won't try dispose of it
>
i don't know how it came here, but /var/log/syslog.1.bz2 should not exist.
syslog, syslog.1, syslog.2.bz2 are acceptable values.
i renamed it.
>
> logrotate.conf :
>
> # uncomment this if you want your log files compressed
> compress
> delaycompress
> compresscmd /usr/bin/bzip2
> compressoptions --best
> compressext .bz2
>
>
>
> /var/log/syslog {
> rotate 400
> size=10M
> compress
> }
>
> ii logrotate 3.5.9-8 Log rotation utility
>
> any clues ?
>
> thanks
>
>
> --
> xavier
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
xavier
Reply to: