this is the /etc/logrotate.d/apache file:

/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
}

I can't see what's the problem...

----- Original Message -----
From: "Shaul Karl" <[EMAIL PROTECTED]>
To: "Ishai Parasol" <[EMAIL PROTECTED]>
Cc: "Linux Mailing-List" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 6:56 PM
Subject: Re: cron.daily error message regarding apache


> On Fri, Feb 14, 2003 at 06:13:19PM +0200, Ishai Parasol wrote:
> > Hi
> >
> > I've upgraded apache from 1.3.12 to 1.3.27 and since then cron.daily
sends
> > root emails (on a daily basis) with this message: "error: apache:1 {
> > expected after log file name".
> > It's a redhat 6.2 and logrotate 3.3.2.
> > this is the logrotate.conf file:
> >
> > # rotate log files weekly
> > weekly
> >
> > # keep 4 weeks worth of backlogs
> > rotate 4
> >
> > # send errors to root
> > errors root
> >
> > # create new (empty) log files after rotating old ones
> > create
> >
> > # uncomment this if you want your log files compressed
> > #compress
> >
> > # RPM packages drop log rotation information into this directory
> > include /etc/logrotate.d
> >
> > # no packages own lastlog or wtmp -- we'll rotate them here
> > /var/log/wtmp {
> >     monthly
> >     create 0664 root utmp
> >     rotate 1
> > }
> >
> >
> > does anyone know how to fix this irritating thing ?
> >
> > Thanks,
> > Ishai.
> >
>
>
>   Since you attach /etc/logrotate.conf I believe you should have
> attached the listing of /etc/logrotate.d, in particular the apache
> file, if there is one.
>
> --
>
>     Shaul Karl, [EMAIL PROTECTED] e t
>
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to