Here's the way I understand things:

One of the main reasons that squidGuard retains its speed (even with
very large numbers of domains and urls), is that it stores all of the
domains and urls in B-trees. (See
<http://whatis.techtarget.com/definition/0,289893,sid9_gci508442,00.html
>)

At startup, squidGuard will look in the directory for domains.db and
urls.db. If it does not find them, it will look for the text files
domains and urls.  If it finds those, squidGuard will create a run-time
B-tree structure from the text files (the time required to create the
B-tree is determined by the number of entries in the text files) and go
into operation. When squidGuard is stopped, that B-tree structure is
lost and will be recreated during the next startup from the text files.

Running <squidGuard -C> tells squidGuard to create the B-tree structures
using the text files, and then store those B-trees as domains.db and
urls.db. The next time squidGuard is started there is no time wasted on
created the B-trees; the db files are immediately loaded and squidGuard
is ready to roll.

Changes to the domains.db and urls.db files are accomplished by creating
domains.diff and urls.diff files. The diff files contain:
+domain to be added
+domain to be added
+domain to be added
-domain to be removed
-domain to be removed
-domain to be removed

Then run <squidGuard -u> to update the db files.

Hope that helps.

Rick


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam Carleton
Sent: Monday, August 13, 2001 7:19 PM
Cc: squidguard
Subject: Re: domainlist empty, removed from memory


No, the domains file is NOT empty.  So what you are saying is that I
should
rename the domain file, create the domain.db file and then reconfigure.
Thanks!

Sam

Rick Matthews wrote:

> <squidGuard -C domains> creates a NEW domains.db file using the
> information in the domains text file.
>
> Is the domains text file empty?
>
> Rick
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sam Carleton
> Sent: Monday, August 13, 2001 4:01 PM
> To: squidguard
> Subject: domainlist empty, removed from memory
>
> I seem to be having problems creating the db files.  I run "squidGuard
> -C domains" from /usr/local/squidGuard/db/blacklists/porn to create
the
> domains.db, when I start squidGuard, I get this in the logfile:
>
> [438] init domainlist /usr/local/squidGuard/db/blacklists/porn/domains
> [438] loading dbfile
/usr/local/squidGuard/db/blacklists/porn/domains.db
>
> [438] domainlist empty, removed from memory
>
> I am clueless.  I checked the permissions on the db file, I searched
the
> documentation for "domainlist empty" and found nothing.  Anyone have
any
> thoughts?
>
> Sam


Reply via email to