Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: GlitchFreak on September 25, 2008, 08:06:51 PM
-
Hey there
Is there a way to add a custom mirror to ClamAV so that it can update from a local site instead?
Thanks!
G
-
Ah, /etc/freshclam.conf
But you'll need to create a custom template to make the changes.
cd /etc/e-smith/templates-custom/etc/
mkdir freshclam.conf
cd freshclam.conf
vi DatabaseMirror
Add:
DatabaseMirror your.closest.server.tld
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
ESC
:wq!
Reason you add the second and third entries is becasue they overwrite the originals. So for a failsafe, leave them in.
To finish up:
expand-templates /etc/freshclam.conf
To check if the entries are in:
cat /etc/freshclam.conf
Lastly
sv restart /service/freshclam
-
Lastly
freshclam
No. There is a continuously running freshclam. To restart it (actually, so terminate it, so that a new copy is started in its place, do:
sv t /service/freshclam
or
sv restart /service/freshclam
-
Thanks Charlie.
I forgot that there is a daemon running and I need to terminate it in order to load up the new config