logrotate question
- From: Zbigniew Szalbot <z.szalbot@xxxxxxxxxxx>
- Date: Wed, 20 Aug 2008 14:13:49 +0200
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
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:
smime.p7s
Description: S/MIME Cryptographic Signature
- Follow-Ups:
- Re: logrotate question
- From: Zbigniew Szalbot
- RE: logrotate question
- From: Rudi Kramer - MWEB
- Re: logrotate question
- Prev by Date: Re: Loss of Internet Contivity
- Next by Date: grok not parsing tcpdump output
- Previous by thread: KDElib + QT
- Next by thread: RE: logrotate question
- Index(es):