Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2008 14:43:08 +0200
From:      Zbigniew Szalbot <z.szalbot@lcwords.com>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: logrotate question
Message-ID:  <48AC115C.8010300@lcwords.com>
In-Reply-To: <48AC0E84.7000106@lcwords.com>
References:  <48AC0A7D.80207@lcwords.com> <48AC0E84.7000106@lcwords.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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
www.LCWords.com

[-- Attachment #2 --]
0	*H
010	+0	*H
	00Mw[BjhV0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080710163457Z
090710163457Z0G10UThawte Freemail Member1$0"	*H
	z.szalbot@lcwords.com0"0
	*H
0
ޯ,}T["^I[#65
C|&$ò2b|s՘{HS.cڙbhk\h)z)q_*:UERgۓ	<L`O?1.;@@8*Uґb 2:^MG'|Wm:s.ʤyFC{k?'&G*o{Z׹	t	,n/?r|u	Ms66ϬeѬ5>92000 U0z.szalbot@lcwords.com0U00
	*H
8*X8A-9ǵM#0w՚ld!Bf(ͬ'K

	NdEP.ӊ^ຸ҅^I
{Ti#ҐbDpk)%/2.00Mw[BjhV0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080710163457Z
090710163457Z0G10UThawte Freemail Member1$0"	*H
	z.szalbot@lcwords.com0"0
	*H
0
ޯ,}T["^I[#65
C|&$ò2b|s՘{HS.cڙbhk\h)z)q_*:UERgۓ	<L`O?1.;@@8*Uґb 2:^MG'|Wm:s.ʤyFC{k?'&G*o{Z׹	t	,n/?r|u	Ms66ϬeѬ5>92000 U0z.szalbot@lcwords.com0U00
	*H
8*X8A-9ǵM#0w՚ld!Bf(ͬ'K

	NdEP.ӊ^ຸ҅^I
{Ti#ҐbDpk)%/2.0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAw[BjhV0	+0	*H
	1	*H
0	*H
	1
080820124308Z0#	*H
	16B0`g0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAw[BjhV0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAw[BjhV0
	*H
VM[s]PgMmc䊜4QbЕۈ2m!p+iA䃦wPP.L^y9bԖF8墈r&![1,eGYk&4ҁ\.1`q-r`[R2Gak<o^$jlI`@j<&J)'XܔOf/
mOaqI}mYjf41.Ub&lq.h
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AC115C.8010300>