Rich wrote:

Is it advisable to use softlimits with clamd?

exec /usr/local/bin/setuidgid qscand \
  /usr/local/bin/softlimit -a 40000000 /usr/local/sbin/clamd



An immediate solution would be to use softlimit and clamdwatch.
So,

clamd exceeds memory usage -> ulimit prevents allocationg memory ->
scanning stops
-> clamdwatch reports clamd dead -> kill clamd -> start clamd

Something like that.
Although personally my clamd works great without leaks, I still use
clamdwatch.
http://mikecathey.com/code/clamdwatch/
You might have to add script to kill & start clamd manually

Regards,

Fajar


-- Please avoid sending me Microsoft Office attachments. See http://www.newsforge.com/software/04/03/27/0134204.shtml


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to