From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 10:18:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB95F16A4D0 for ; Wed, 28 Apr 2004 10:18:55 -0700 (PDT) Received: from mxsf02.cluster1.charter.net (mxsf02.cluster1.charter.net [209.225.28.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5252D43D1F for ; Wed, 28 Apr 2004 10:18:55 -0700 (PDT) (envelope-from jseely13@charter.net) Received: from 209.225.8.224 (fep06.charter.net [209.225.8.86]) i3SHGmwY086091 for ; Wed, 28 Apr 2004 13:16:48 -0400 (EDT) Message-Id: <200404281716.i3SHGmwY086091@mxsf02.cluster1.charter.net> X-Mailer: Openwave WebEngine, version 2.8.12 (webedge20-101-197-20030912) From: To: Date: Wed, 28 Apr 2004 17:16:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: logrotate help :( X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 17:18:55 -0000 i've done my best to rtfm and google around, but i can't figure out why this is happening. logrotate runs right the first time, moving the right logs to the backup folder and compressing them to logname.1.bz2, but then the 2nd time it runs it's not doing the mv it's supposed to (if i understand correctly) for mv logname.1.bz2 logname.2.bz2, so bzip complains the file already exists... i'm running 5.1 release, and have installed the logrotate 3.6.5 port... =-=-=-=- logrotate.conf: #test logrotate configuration file compress /var/log/test2/* { rotate 5 size=10M olddir /var/log/backup compresscmd /usr/bin/bzip2 } =-=-=-=-=- #copy test logs to test dir [root@box log]§ cp test/* test2/ [root@box log]§ logrotate -s /usr/local/var/status /etc/logrotate.conf #copy a newer version of one of the test logs into the test dir [root@box log]§ cp remote/box01 test2/ [root@box log]§ logrotate -s /usr/local/var/status /etc/logrotate.conf bzip2: Output file /var/log/backup/box01.1.bz2 already exists. failed to compress log /var/log/backup/box01.1 [root@box log]§ ls -al /var/log/backup/ total 33620 drwxr-xr-x 2 root wheel 512 Apr 28 11:59 . drwxr-xr-x 8 root wheel 1536 Apr 28 03:01 .. -rw-r----- 1 root wheel 3128184 Apr 28 11:57 box00.1.bz2 -rw-r----- 1 root wheel 29019450 Apr 28 11:59 box01.1 -rw-r----- 1 root wheel 2202570 Apr 28 11:57 box01.1.bz2 =-=-=-=-=- i'm stumped... i know it's not supposed to run more than once per day (per the man page), but i got this exact behavior when i waited a day... tx for any help you can provide... -- john