Index: [Article Count Order] [Thread]

Date:  Tue, 28 Feb 2006 12:17:45 -0800
From:  "Ken Marcus -  Precision Web Hosting" <kenmarcus (at mark) precisionweb.net>
Subject:  [coba-e:04204] Re: Webalizer comment/bug
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <2f7701c63ca4$1210c5b0$6700a8c0@youro1n9oy17sk>
References:  <006a01c61aca$1b792d00$71001fac@DELLP4TACO>
X-Mail-Count: 04204

> Hello,
>
> On one of my BQ boxes I have a very busy site (creating long logfiles).
> Recently I noticed weblizer skipped some days.
> This behaviour was known to me on the older Cobalts as well and was due to 
> the fact that the site's web.log file was being rotated BEFORE webalizer 
> could process it.
>
> If you change the postrotate part in /etc/logrotate.d/apache:
>
>    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
>        /usr/bin/nohup /usr/bin/webalizer.pl &
>        rm -f /tmp/.logrotate_apache_access >/dev/null 2>&1
>    endscript
>
> to
>
>    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
>
> Everything is fine.
>
> Hisao, can you possibly change this in the BQ repository (if nobody 
> objects) ?
>
> Thanks,
>
> Taco


I tried this change. It seems to fix the problem of skipped days on sites 
with heavy usage.



----
Ken Marcus
Precision Web Hosting, Inc.
http://www.precisionweb.net