Date: Wed, 20 Aug 2008 14:31:00 +0200 From: Zbigniew Szalbot <z.szalbot@lcwords.com> To: User Questions <freebsd-questions@freebsd.org> Subject: Re: logrotate question Message-ID: <48AC0E84.7000106@lcwords.com> In-Reply-To: <48AC0A7D.80207@lcwords.com> References: <48AC0A7D.80207@lcwords.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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? > > The (simple) content of logrotate.conf is below: > > # rotate apache logs > "/var/log/httpd-error.log" { > rotate 5 > monthly > compress > delaycompress > create > size=70k > missingok > sharedscripts > olddir="/var/log/tmp/" > postrotate > /sbin/killall -HUP httpd > endscript > } > > I tried olddir argument with and without =, with and without "", with > and without a trailing slash and still getting this error. > > I am also not sure why it would expect } in line 11? > > I have read the man but it does not answer my questions or at least I do > not see the answers. > > Many thanks for your advice! > -- Zbigniew Szalbot www.LCWords.com [-- Attachment #2 --] 0 *H 010 + 0 *H 00Mw[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_*:UERgۓ <L`O?1.;@@8*Uґb 2:^MG'|Wm:s.ʤyFC{k?'&
