> 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