logrotate error

Keary Suska yellowdog-general@lists.terrasoftsolutions.com
Tue Sep 3 13:04:01 2002


on 9/3/02 9:04 AM, jeglin@4pi.com purportedly said:

> error: apache:1 { expected after log file name
> 
> I'm not sure where to look for the source of this error. The
> following looks OK to me (the bracket appears to be there):
> 
> [root@orion log]# more /etc/logrotate.d/apache
> /var/log/httpd/access_log /var/log/httpd/agent_log
> /var/log/httpd/error_log /var/log/httpd/referer_log {
> missingok
> sharedscripts
> postrotate
> /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
> /dev/null || true
> endscript
> }

Looks like it *could* be OK, depends on whether the line wraps are caused by
email. IIRC, multiple log files should be on one line separated by
acceptable whitespace. I would check to make sure that there are nothing but
spaces separating in that first line. If that doesn't work, you could try:
    /var/log/httpd/*_log {
instead.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"