Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > 3204dd9063ca8a7ea2b1403419afda6c > files > 32

clamav-0.54-7mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Setting up auto-updating</TITLE>
<META NAME="description" CONTENT="Setting up auto-updating">
<META NAME="keywords" CONTENT="clamdoc">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="clamdoc.css">

<LINK REL="next" HREF="node12.html">
<LINK REL="previous" HREF="node10.html">
<LINK REL="up" HREF="node4.html">
<LINK REL="next" HREF="node12.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html174"
  HREF="node12.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html172"
  HREF="node4.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html166"
  HREF="node10.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html175"
  HREF="node12.html">AMaViS - "Next Generation"</A>
<B> Up:</B> <A NAME="tex2html173"
  HREF="node4.html">Installation</A>
<B> Previous:</B> <A NAME="tex2html167"
  HREF="node10.html">Testing</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION00027000000000000000">
Setting up auto-updating</A>
</H2>
    <I>freshclam</I> is a tool, which automates the virus database update 
    process for Clam AntiVirus. You will find more information about it in
    the section <A HREF="node20.html#freshclam">3.5</A>. It may be used in two ways:
    
<UL>
<LI>interactive - from command line
</LI>
<LI>as a daemon - works alone, silently
    
</LI>
</UL>
    <B>Run <I>freshclam</I> (as root) without any parameters to check
    is it working correctly</B>. If everything is OK, create a log file in
    /var/log owned by <I>clamav</I>:
    <PRE>
	# touch /var/log/clam-update.log
	# chmod 644 /var/log/clam-update.log
	# chown clamav /var/log/clam-update.log
</PRE>
    Now, you may run <I>freshclam</I> as a daemon:
    <PRE>
	# freshclam -d -c 2 -l /var/log/clam-update.log
</PRE>
    It will check for a new database 2 times a day. Please add this line
    to your startup scripts. The other way is to use the <I>cron</I> daemon.
    You have to add a similar line to the crontab of <B>root</B> or
    <B>clamav</B>:
    <FONT SIZE="-1">    </FONT><PRE>
0 8	* * *	/usr/local/bin/freshclam --quiet -l /var/log/clam-update.log
</PRE>
    It will check for a new database daily at 8 am. You may need
    to setup the proxy support on your system. You should set the environment
    variable <I>$http_proxy</I>, eg.
    <PRE>
	export http_proxy="my.proxy.server:8080"
</PRE>
    There is also <I>-http-proxy</I> option available.

<P>
<BR><HR>
<ADDRESS>
Tomasz Kojm
2002-11-21
</ADDRESS>
</BODY>
</HTML>