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

Re: logrotate and bzip2, bz2 on woody stable rotation problem



On Thu, Sep 02, 2004 at 03:11:09PM -0400, Bill Marcum wrote:
> 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
> > 
> > 
> > logrotate.conf : 
> > 
> > # uncomment this if you want your log files compressed
> > compress
> > delaycompress
> > compresscmd /usr/bin/bzip2
> > compressoptions --best
>   compressoptions -f --best
> 


hum, this will just erase the old file,
not rotating it, right ?

i think i'd like to keep my logs... ?


thanks



-- 
xavier



Reply to: