On 10/19/2004 10:54 AM +0200, Awie wrote:
All,

I stuck to use clamd of version 0.80 with daemontools (I used this scheme
very nicely for older version). Does anyone know how to do it?

Thx & Rgds,

Awie

I use daemontools to run clamd. I didn't change a thing when upgrading from 0.75.1 to 0.80rc-series, and 0.80 final.

My run script and clamd.conf attached.

Regards,
Niek
--
_______________________________________________________________________
Read about mime:                    http://www.geoapps.com/nomime.shtml
Read about quoting:     http://www.netmeister.org/news/learn2quote.html
Read about disclaimers: http://www.goldmark.org/jeff/stupid-disclaimers
#!/bin/sh
exec 2>&1
CLAMD_FILE=/tmp/clamd
SCAN_FILE=$0

# Check for a leftover socket.
if [ -e $CLAMD_FILE ]
then
  echo "run: WARNING: file $CLAMD_FILE exists"
  if clamdscan $SCAN_FILE
  then
    echo "run: FATAL: Clamd is already running. Trying to start anyway..."
  else
    echo "run: INFO: Clamd is not running. Deleting $CLAMD_FILE"
    rm -f $CLAMD_FILE
  fi
fi

# Run the scanner daemon.
exec /usr/sbin/clamd
##
## Example config file for the Clam AV daemon
## Please read the clamd.conf(5) manual before editing this file.
##

LogFile /dev/stderr
DatabaseDirectory /usr/share/clamav
LocalSocket /tmp/clamd
FixStaleSocket
Foreground
MaxThreads 30
MaxDirectoryRecursion 20
# Scan options, turn off everything, then enable a couple
DisableDefaultScanOptions
ScanPE
ScanOLE2
ScanHTML
ScanArchive
ArchiveMaxFileSize 15M
ArchiveMaxRecursion 8
ArchiveMaxFiles 1500
ArchiveMaxCompressionRatio 300

#LogFileUnlock
#LogFileMaxSize 2M
#LogTime
#LogClean
#LogSyslog
#LogFacility LOG_MAIL
#LogVerbose
#PidFile /var/run/clamd.pid
#TemporaryDirectory /var/tmp
#TCPSocket 3310
#TCPAddr 127.0.0.1
#MaxConnectionQueueLength 30
#StreamMaxLength 20M
#MaxThreads 20
#ReadTimeout 300
#IdleTimeout 60
#MaxDirectoryRecursion 20
#FollowDirectorySymlinks
#FollowFileSymlinks
#SelfCheck 600
#VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"
#User clamav

#AllowSupplementaryGroups
#Debug
#ScanMail
#MailFollowURLs
#ScanRAR
#ArchiveLimitMemoryUsage
#ArchiveBlockEncrypted
#ArchiveBlockMax
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to