Bowie Bailey wrote:
Alex wrote:
Hi,
Also, in my installation, the documentation can be found in both clamd.conf
(under "Perform a database check.... SelfCheck xxx") and in man clamd.conf
(under "Directives -> SelfCheck NUMBER"). It does seem a bit vague as only
in clamd.conf does it indicate what the value might mean ("Default: 600 (10
min)").
I guess it is a little vague, because I don't understand what you mean
even here.
I assumed the database check was an integrity check, not an update check, right?
How does this parameter relate to freshclam in any way, particularly
for database updates?
I think there is a bit of confusion here between the "SelfCheck" setting
in clamd.conf and the "Checks" setting in freshclam.conf.
I do see his point with the man page documentation for clamd.conf:
SelfCheck NUMBER
Perform a database check.
Default: 1800
So what does the number mean? The man page doesn't say. You have to
read the conf file to get an explanation:
# Perform internal sanity check (database integrity and freshness).
# Default: 1800 (30 min)
SelfCheck 1200
The man page needs to be updated to define the units for the "SelfCheck"
setting.
In trying to get freshclam to run automatically, I believe that I
discovered that this database check in clamd.conf actually checks for
updates. While I'm not 100% sure, I think that this setting either
invokes freshclam or it runs an equivalent command. Other users here
should be able to confirm whether I'm on the right track.
FWIW, on another machine I did set up (either through cron or
daemonic, not sure which) freshclam to run periodically. My
recollection is that you need to make sure that the database is owned
by the same user that runs this job. In other words, cron or daemonic
runs freshclam as admin, but the database may be owned by clamav--your
log files would indicate if there is a problem updating or accessing
the database. The simpler solution, in my experience, is to have clamd
update the database periodically, because it runs the update as the
"right" user by default. Here again, verification from other users
would be in order, so please chime in if you have better information.
Best regards,
Robert
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml