Package: webdruid
Version: 0.5.4-2
Severity: wishlist
Tags: patch

Hi there. I'm not sure that you didn't add any crontab script in the
last version (I'm using stable), but I didn't see anything about this in
changelog.

So here is an example of crontab script I'm using on my host:

=============
$cat /etc/cron.daily/webdruid
#!/bin/sh
# /etc/cron.daily/webdruid: webdruid daily maintenance script

WEBDRUID_BIN=/usr/bin/webdruid
WEBDRUID_SITELIST=/etc/webdruid/site.list
LOG_DIR=/var/log/apache2
REPORT_ROOT=/var/www/webdruid/

cat "$WEBDRUID_SITELIST" | while read HOSTNAME NAME;do (
        if [ ! -d "${LOG_DIR}/${NAME}" ];then exit 1;fi

        if [ ! -d "${REPORT_ROOT}${NAME}" ];then
                mkdir "${REPORT_ROOT}${NAME}"
        fi

        ${WEBDRUID_BIN} -Q -n "${HOSTNAME}" -o "${REPORT_ROOT}${NAME}"
"${LOG_DIR}/${NAME}/access.log.1"

) done

exit 0
=============

Where in /etc/webdruid/site.list there are lines like
exampledomain1.com example1
exampledomain2.com example2

And my apache generate logs for that domains in
/var/log/apache2/example1/access.log and
/var/log/apache2/example2/access.log

I didn't hooked it to logrotate, because my logs rotates not too often
(at least for some of my sites), but I just know that there rotate period
not less that 1 day.

PS The only change from default webdruid installation is 
"Incremental yes" in /etc/webdruid/webdruid.conf

PPS As my apache generate logs in subdir of /var/log/apache2 I've added

/var/log/apache2/*.log /var/log/apache2/*/*.log
                       ^^^^^^^^^^^^^^^^^^^^^^^^
in /etc/logrotate.d/apache2
(The same idea was used for apache1.3 previously.)



I'm not sure that it's possible to force webdruid to work from the box,
but this script and some hints (with language correction :) ) could be
included into documentation of webdruid package.


Regards, Alexander.


-- System Information:
Debian Release: 3.1
  APT prefers proposed-updates
  APT policy: (670, 'proposed-updates'), (670, 'stable'), (620, 
'testing-proposed-updates'), (620, 'testing'), (600, 'unstable'), (550, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-1-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages webdruid depends on:
ii  libc6                  2.3.6-3           GNU C Library: Shared libraries an
ii  libdb4.3               4.3.27-2          Berkeley v4.3 Database Libraries [
ii  libfreetype6           2.1.7-2.4         FreeType 2 font engine, shared lib
ii  libgd2-xpm             2.0.33-1.1        GD Graphics Library version 2
ii  libpng12-0             1.2.8rel-5        PNG library - runtime
ii  ttf-freefont           20031008-1.1      Freefont Serif, Sans and Mono True
ii  zlib1g                 1:1.2.2-4.sarge.2 compression library - runtime

webdruid recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to