On Sun, Nov 23, 2003 at 02:52:20AM +0200, Tzafrir Cohen wrote:
> On Sun, Nov 23, 2003 at 02:37:18AM +0200, Tzafrir Cohen wrote:
> > I noticed /var is almost out of disk space. Most of the space is taken
> > by /var/log This is mainly because log rotation seem to have been
> > stopped somewhere around July.
> > 
> > I can't figure out why this happens, as all the configurqation files
> > seem OK to me. 
> 
> Seem to be ome syntax  errors in logrotate files... Still looking

Problem probably solved:

logrotate claimed there was a syntax error in /etc/logrotate.d/apache

Its date was from 20-Nov-2002, IIRC.

The error message I got:

  # /usr/sbin/logrotate -d /etc/logrotate.conf
  reading config file /etc/logrotate.conf
  including /etc/logrotate.d
  reading config file apache
  error: apache:1 { expected after log file name

The file (the remmed-out line was the oriinal line. I replaced it the
the line that has *_log):

  # remmed-out by Tzafrir
  #/var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log 
/var/log/httpd/referer_log {
  # TODO: s that OK?
  /var/log/httpd/*_log {
      missingok
      sharedscripts
      postrotate
          /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
      endscript
  }

/var/log/httpd/*_log is:

  /var/log/httpd/access_log
  /var/log/httpd/error_log
  /var/log/httpd/gamla-access_log  
  /var/log/httpd/gamla-error_log
  /var/log/httpd/x-sql-access_log
  /var/log/httpd/x-sql-error_log


-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

Reply via email to