docs/html/node25.html
61b40ee3
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
73e034df
 
61b40ee3
 <!--Converted with LaTeX2HTML 2002-2-1 (1.71)
73e034df
 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>
96e05490
 <TITLE>Clam daemon</TITLE>
 <META NAME="description" CONTENT="Clam daemon">
73e034df
 <META NAME="keywords" CONTENT="clamdoc">
 <META NAME="resource-type" CONTENT="document">
 <META NAME="distribution" CONTENT="global">
 
61b40ee3
 <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
73e034df
 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
 
 <LINK REL="STYLESHEET" HREF="clamdoc.css">
 
 <LINK REL="next" HREF="node26.html">
 <LINK REL="previous" HREF="node24.html">
96e05490
 <LINK REL="up" HREF="node24.html">
73e034df
 <LINK REL="next" HREF="node26.html">
 </HEAD>
 
 <BODY >
61b40ee3
 
 <DIV CLASS="navigation"><!--Navigation Panel-->
96e05490
 <A NAME="tex2html518"
73e034df
   HREF="node26.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
96e05490
 <A NAME="tex2html514"
   HREF="node24.html">
73e034df
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
96e05490
 <A NAME="tex2html508"
73e034df
   HREF="node24.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
96e05490
 <A NAME="tex2html516"
73e034df
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 <BR>
96e05490
 <B> Next:</B> <A NAME="tex2html519"
   HREF="node26.html">Clamdscan</A>
 <B> Up:</B> <A NAME="tex2html515"
   HREF="node24.html">Usage</A>
 <B> Previous:</B> <A NAME="tex2html509"
   HREF="node24.html">Usage</A>
  &nbsp; <B>  <A NAME="tex2html517"
73e034df
   HREF="node1.html">Contents</A></B> 
 <BR>
61b40ee3
 <BR></DIV>
73e034df
 <!--End of Navigation Panel-->
 
96e05490
 <H2><A NAME="SECTION00061000000000000000"></A><A NAME="clamd"></A>
73e034df
 <BR>
96e05490
 Clam daemon
73e034df
 </H2>
96e05490
     <code>clamd</code> is a multi-threaded daemon that uses <SPAN  CLASS="textit">libclamav</SPAN>
     to scan files for viruses. It may work in one or both modes listening on:
73e034df
     
 <UL>
96e05490
 <LI>Unix (local) socket
 </LI>
 <LI>TCP socket
     
 </LI>
 </UL>
     The daemon is fully configurable via the <code>clamd.conf</code> file
     <A NAME="tex2html19"
   HREF="footnode.html#foot234"><SUP><SPAN CLASS="arabic">7</SPAN></SUP></A>. <code>clamd</code> recognizes the following commands:
     
 <UL>
 <LI><SPAN  CLASS="textbf">PING</SPAN>
 <BR>
 Check the daemon's state (should reply with "PONG").
 </LI>
 <LI><SPAN  CLASS="textbf">VERSION</SPAN>
 <BR>
 Print program and database versions.
 </LI>
 <LI><SPAN  CLASS="textbf">RELOAD</SPAN>
 <BR>
 Reload the databases.
 </LI>
 <LI><SPAN  CLASS="textbf">SHUTDOWN</SPAN>
 <BR>
 Perform a clean exit.
 </LI>
 <LI><SPAN  CLASS="textbf">SCAN file/directory</SPAN>
 <BR>
 Scan file or directory (recursively) with archive support
 	    enabled (a full path is required).
 </LI>
 <LI><SPAN  CLASS="textbf">RAWSCAN file/directory</SPAN>
 <BR>
 Scan file or directory (recursively) with archive and special file
 	    support disabled (a full path is required).
 </LI>
 <LI><SPAN  CLASS="textbf">CONTSCAN file/directory</SPAN>
 <BR>
 Scan file or directory (recursively) with archive support
 	    enabled and don't stop the scanning when a virus is found.
 </LI>
 <LI><SPAN  CLASS="textbf">MULTISCAN file/directory</SPAN>
73e034df
 <BR>
96e05490
 Scan file in a standard way or scan directory (recursively) using
 	    multiple threads (to make the scanning faster on SMP machines).
73e034df
 </LI>
96e05490
 <LI><SPAN  CLASS="textbf">STREAM</SPAN>
 <BR>
 Scan stream: <code>clamd</code> will return a new port number you should
 	    connect to and send data to scan.
 </LI>
 <LI><SPAN  CLASS="textbf">SESSION, END</SPAN>
 <BR>
 Start/end a <code>clamd</code> session - you can do multiple commands
 	    per TCP session (WARNING: due to the <code>clamd</code> implementation the
 	    <SPAN  CLASS="textbf">RELOAD</SPAN> command will break the session).
     
 </LI>
 </UL>
     and reacts on the special signals:
     
 <UL>
 <LI><SPAN  CLASS="textbf">SIGTERM</SPAN> - perform a clean exit
 </LI>
 <LI><SPAN  CLASS="textbf">SIGHUP</SPAN> - reopen the log file
 </LI>
 <LI><SPAN  CLASS="textbf">SIGUSR2</SPAN> - reload the database
73e034df
     
 </LI>
 </UL>
 
 <P>
96e05490
 
 <DIV CLASS="navigation"><HR>
 <!--Navigation Panel-->
 <A NAME="tex2html518"
   HREF="node26.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 <A NAME="tex2html514"
   HREF="node24.html">
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
 <A NAME="tex2html508"
   HREF="node24.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
 <A NAME="tex2html516"
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 <BR>
 <B> Next:</B> <A NAME="tex2html519"
   HREF="node26.html">Clamdscan</A>
 <B> Up:</B> <A NAME="tex2html515"
   HREF="node24.html">Usage</A>
 <B> Previous:</B> <A NAME="tex2html509"
   HREF="node24.html">Usage</A>
  &nbsp; <B>  <A NAME="tex2html517"
   HREF="node1.html">Contents</A></B> </DIV>
 <!--End of Navigation Panel-->
73e034df
 <ADDRESS>
 Tomasz Kojm
1f995dd7
 2008-08-15
73e034df
 </ADDRESS>
 </BODY>
 </HTML>