9893a85c |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
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 v99.2beta8">
<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--> |
80db7761 |
<A NAME="tex2html819" |
9893a85c |
HREF="node25.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> |
80db7761 |
<A NAME="tex2html815" |
9893a85c |
HREF="node23.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> |
80db7761 |
<A NAME="tex2html809" |
9893a85c |
HREF="node23.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> |
80db7761 |
<A NAME="tex2html817" |
9893a85c |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR> |
80db7761 |
<B> Next:</B> <A NAME="tex2html820" |
9893a85c |
HREF="node25.html">Clamdscan</A> |
80db7761 |
<B> Up:</B> <A NAME="tex2html816" |
9893a85c |
HREF="node23.html">Usage</A> |
80db7761 |
<B> Previous:</B> <A NAME="tex2html810" |
9893a85c |
HREF="node23.html">Usage</A> |
80db7761 |
  <B> <A NAME="tex2html818" |
9893a85c |
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="tex2html36"
HREF="footnode.html#foot274"><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--> |
80db7761 |
<A NAME="tex2html819" |
9893a85c |
HREF="node25.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> |
80db7761 |
<A NAME="tex2html815" |
9893a85c |
HREF="node23.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> |
80db7761 |
<A NAME="tex2html809" |
9893a85c |
HREF="node23.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> |
80db7761 |
<A NAME="tex2html817" |
9893a85c |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR> |
80db7761 |
<B> Next:</B> <A NAME="tex2html820" |
9893a85c |
HREF="node25.html">Clamdscan</A> |
80db7761 |
<B> Up:</B> <A NAME="tex2html816" |
9893a85c |
HREF="node23.html">Usage</A> |
80db7761 |
<B> Previous:</B> <A NAME="tex2html810" |
9893a85c |
HREF="node23.html">Usage</A> |
80db7761 |
  <B> <A NAME="tex2html818" |
9893a85c |
HREF="node1.html">Contents</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Tomasz Kojm |
e5969c20 |
2005-06-23 |
9893a85c |
</ADDRESS>
</BODY>
</HTML> |