2002-09-24 14:29:55 +02:00
|
|
|
===========================================================================
|
2009-02-13 23:37:02 +01:00
|
|
|
$NetBSD: MESSAGE,v 1.7 2009/02/13 22:37:02 abs Exp $
|
2001-01-29 12:34:21 +01:00
|
|
|
|
2001-03-12 19:05:24 +01:00
|
|
|
1) To enable "wwwwoffled" to start on boot on NetBSD-1.5 or newer,
|
2005-11-01 13:22:24 +01:00
|
|
|
please copy "${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffled" to
|
|
|
|
"/etc/rc.d/" and add "wwwoffled=YES" to /etc/rc.conf. To do the
|
|
|
|
same on older systems, add the following to /etc/rc.local:
|
2001-03-12 19:05:24 +01:00
|
|
|
|
2004-10-12 00:14:51 +02:00
|
|
|
if [ -x ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffle ]; then
|
|
|
|
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffle
|
2001-03-12 19:05:24 +01:00
|
|
|
fi
|
|
|
|
|
2002-03-11 08:32:33 +01:00
|
|
|
2) The hooks are present to to use the package version of "htdig",
|
2005-11-01 13:22:24 +01:00
|
|
|
if installed, to serve a searchable index of your cached pages.
|
|
|
|
To make the word database, start "wwwoffle" and execute the script
|
|
|
|
"/var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full".
|
2001-03-12 19:05:24 +01:00
|
|
|
|
2002-03-11 08:32:33 +01:00
|
|
|
2a) A complete installation will purge the cache (and optionally
|
2005-11-01 13:22:24 +01:00
|
|
|
reindex the database for "htdig") periodically, as by the following
|
|
|
|
example "crontab fragment":
|
2001-03-12 19:05:24 +01:00
|
|
|
|
|
|
|
# wwwoffle proxy maintenance
|
2009-02-13 23:37:02 +01:00
|
|
|
01 1 * * 0-5 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-incr
|
|
|
|
01 1 * * 6 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full
|
2002-03-11 08:32:33 +01:00
|
|
|
|
|
|
|
3) Docs and links for the other supported cache searchers, and all
|
2005-11-01 13:22:24 +01:00
|
|
|
documentation in fact, is easily accessible once wwwoffle is started,
|
|
|
|
via
|
|
|
|
http://localhost:8080/Welcome.html
|
2001-01-29 12:34:21 +01:00
|
|
|
|
2002-09-24 14:29:55 +02:00
|
|
|
===========================================================================
|