#!/bin/sh
# Dont forget to enable "LogVerbose", "Foreground", "ScanAchive" and "ScanMail" in clamav.conf !
# You may need to raise the "MaxThreads NUMBER" (default 5) in clamav.conf ("MaxThreads NUMBER" == "concurrencylocal").
exec softlimit -m 80000000 \
       /usr/local/sbin/clamd -c /usr/local/etc/clamav.conf 2>&1

