logrotate question

Zbigniew Szalbot z.szalbot at lcwords.com
Wed Aug 20 12:43:13 UTC 2008

Sorry for this monologue...

Zbigniew Szalbot:
> Answering myself...
> Zbigniew Szalbot:
>> Dear all,
>> I am trying to use logrotate from ports and I am getting the following 
>> error. Can anyone offer any insight?
>> /usr/local/sbin/logrotate -d /usr/local/etc/logrotate.conf
>> reading config file /usr/local/etc/logrotate.conf
>> reading config info for /var/log/httpd-error.log
>> error: /usr/local/etc/logrotate.conf:11 bad olddir path "/var/log/tmp/"
>> error: found error in /var/log/httpd-error.log  , skipping
>> error: /usr/local/etc/logrotate.conf:11 } expected
>> removing last 1 log configs
> http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2008-August/147600.html 
> So it seems there is a bug and it has not yet been solved?
I upgraded (!) logrotate and all is fine. I installed it a few days ago 
and thought I had the latest version. Shame on me!

$ /usr/local/sbin/logrotate -d /usr/local/etc/logrotate.conf
reading config file /usr/local/etc/logrotate.conf
reading config info for /var/log/httpd-error.log
olddir is now tmp/

Handling 1 logs

rotating pattern: /var/log/httpd-error.log       71680 bytes (5 rotations)
olddir is tmp/, empty log files are rotated, old logs are removed
considering log /var/log/httpd-error.log
   log needs rotating
rotating log /var/log/httpd-error.log, log->rotateCount is 5
dateext suffix '-20080820'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
glob finding logs to compress failed
glob finding old rotated logs failed
renaming /var/log/httpd-error.log to /var/log/tmp//httpd-error.log-20080820
creating new /var/log/httpd-error.log mode = 0644 uid = 0 gid = 0
running postrotate script
running script with arg /var/log/httpd-error.log        : "
                 /sbin/killall -HUP httpd

Zbigniew Szalbot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080820/aee9adee/smime.bin

More information about the freebsd-questions mailing list