<!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>Clam daemon</TITLE> <META NAME="description" CONTENT="Clam daemon"> <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="node25.html"> <LINK REL="previous" HREF="node23.html"> <LINK REL="up" HREF="node23.html"> <LINK REL="next" HREF="node25.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html735" HREF="node25.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html731" HREF="node23.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html725" HREF="node23.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html733" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="/usr/share/latex2html/icons/contents.png"></A> <BR> <B> Next:</B> <A NAME="tex2html736" HREF="node25.html">Clamdscan</A> <B> Up:</B> <A NAME="tex2html732" HREF="node23.html">Usage</A> <B> Previous:</B> <A NAME="tex2html726" HREF="node23.html">Usage</A>   <B> <A NAME="tex2html734" HREF="node1.html">Contents</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00061000000000000000"></A><A NAME="clamd"></A> <BR> Clam daemon </H2> <code>clamd</code> is a multi-threaded daemon that uses <I>libclamav</I> to scan files against viruses. It may work in one of the two network modes, listening on a: <UL> <LI>Unix (local) socket </LI> <LI>TCP socket </LI> </UL> The daemon is fully configurable via the <code>clamd.conf</code> file <A NAME="tex2html34" HREF="footnode.html#foot270"><SUP>5</SUP></A>. <code>clamd</code> recognizes the following commands: <UL> <LI><B>PING</B> <BR> Check daemon state (should reply with "PONG"). </LI> <LI><B>VERSION</B> <BR> Print program and database versions. </LI> <LI><B>RELOAD</B> <BR> Reload databases. </LI> <LI><B>SHUTDOWN</B> <BR> Perform a clean exit. </LI> <LI><B>SCAN file/directory</B> Scan file or directory (recursively) with archive support enabled (a full path is required). </LI> <LI><B>RAWSCAN file/directory</B> Scan file or directory (recursively) with archive support disabled (a full path is required). </LI> <LI><B>CONTSCAN file/directory</B> Scan file or directory (recursively) with archive support enabled and do not stop scanning if virus is found. </LI> <LI><B>STREAM</B> Scan stream: <code>clamd</code> will return a new port number you should connect to and send data to scan. </LI> <LI><B>SESSION, END</B> Start/end a <code>clamd</code> session - you can do multiple commands per TCP session (WARNING: due to the <code>clamd</code> implementation the <B>RELOAD</B> command will break the session). </LI> </UL> and reacts to the special signals: <UL> <LI><B>SIGTERM</B> - perform a clean exit </LI> <LI><B>SIGHUP</B> - reopen a log file </LI> <LI><B>SIGUSR2</B> - reload the database </LI> </UL> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html735" HREF="node25.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html731" HREF="node23.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html725" HREF="node23.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html733" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="/usr/share/latex2html/icons/contents.png"></A> <BR> <B> Next:</B> <A NAME="tex2html736" HREF="node25.html">Clamdscan</A> <B> Up:</B> <A NAME="tex2html732" HREF="node23.html">Usage</A> <B> Previous:</B> <A NAME="tex2html726" HREF="node23.html">Usage</A>   <B> <A NAME="tex2html734" HREF="node1.html">Contents</A></B> <!--End of Navigation Panel--> <ADDRESS> Tomasz Kojm 2004-10-17 </ADDRESS> </BODY> </HTML>