On Fri, Feb 14, 2003 at 11:26:01PM +0200, Ishai Parasol wrote:
> 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...
> 


  Neither do I, and I am also not familiar with the configuration of
logrotate. However until a better reply is given, I will make a guess,
based on the message

  "error: apache:1 { expected after log file name".

My guess is that the problem lies in the 1st line of the apache file,
and that the new line between the 2nd and the 3rd file names prevents
logrotate from seeing the '{' character that appears after the 3rd file
name. Note that I assumed that indeed there is there a '\n'. In any case
one way to test my hypothesis is to have there only one file name and
see what happens.

  Actually, isn't {RH,Debian} whatever you are using didn't install the
file from the distributed package?


> ----- 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]
> 

-- 

    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