Index: [Article Count Order] [Thread]

Date:  Sat, 16 Sep 2006 18:19:06 -0400
From:  "Darrell D. Mobley" <dmobley (at mark) uhostme.net>
Subject:  [coba-e:06999] Re: Cron <root (at mark) www> run-parts /etc/cron.daily
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <004401c6d9de$20758e60$6400a8c0@YOUR4105E587B6>
In-Reply-To:  <001001c6d9c8$cccb7410$1e64a8c0@moe>
X-Mail-Count: 06999

I looked at it, and it looks just like what you posted.  I'm still not sure
what I am looking for.  I don't see anything that is causing the access_log
to be 0 bytes, like something is deleting it or touching it.  I see where
the access_log is trying to be copied, but not if empty.  Why would it be
empty?

Is there a service I can restart when I see this happening?  Otherwise I
have to reboot the server to restart it.

> -----Original Message-----
> From: Brian N. Smith [mailto:brian (at mark) nuonce.net]
> Sent: Saturday, September 16, 2006 3:46 PM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:06992] Re: Cron <root (at mark) www> run-parts /etc/cron.daily
> 
> I have seen this before.
> 
> Look at your
> 
> /etc/logrotate.d/apache
> 
> 
> /var/log/httpd/access_log {
>     daily
>     prerotate
>         rm -rf /tmp/.logrotate_apache_access >/dev/null 2>&1
>         cp /var/log/httpd/access_log /tmp/.logrotate_apache_access
>  >/dev/null 2>&1
>     endscript
>     missingok
>     notifempty
>     sharedscripts
>     postrotate
>         /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
> /dev/null || true
>         /usr/local/sbin/split_logs web < /tmp/.logrotate_apache_access
>         rm -f /tmp/.logrotate_apache_access >/dev/null 2>&1
>         /usr/bin/webalizer.pl
>     endscript
> }
> 
> That is what you want to look at.
> 
> -Brian