Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] logrotate with bzip2
- Date: Sun, 12 May 2002 23:58:44 +0900
- From: BOTi <9915104t@example.com>
- Subject: [tlug] logrotate with bzip2
- Organization: Kobe University, Japan
Evening, I changed logrotate to compress old logfiles as bzip2. Added the following options to /etc/logrotate.conf compress compresscmd /usr/bin/bzip2 uncompresscmd /usr/bin/bunzip2 compressoptions "-9" compressext "bz2" The problem is that logrotate doesn't recognize bz2 compressed logfiles like daemon.log.1.bz2 and doesn't rename it to daemon.log.2.bz2. So when it comes to rotation it moves daemon.log to daemon.log.1 and tries to compress it, but bzip2 fails. I get an error from bzip2: bzip2: Output file /var/log/daemon.log.1.bz2 already exists. failed to compress log /var/log/daemon.log.1 The option 'compressext ".bz2"' didn't work either. tia -- B0Ti.
- Follow-Ups:
- Re: [tlug] logrotate with bzip2
- From: BOTi
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] LPI test on Linux World
- Next by Date: Re: [tlug] logrotate with bzip2
- Previous by thread: [tlug] u/mount problems
- Next by thread: Re: [tlug] logrotate with bzip2
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links