Executing command
#chkconfig clamd off; service clamd stop; sh /script/restart-mail;
#tail -f /var/log/maillog
Aug 26 20:50:52 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:53 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:54 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:55 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:56 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:57 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:58 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:50:59 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:51:00 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:51:01 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
Aug 26 20:51:02 server clamd: setuidgid: fatal: unable to run /usr/sbin/clamd: f ile does not exist
---
Then I try to check "Enable Virus Scan"
and see /var/log/maillog
Aug 26 20:55:10 server clamd: ERROR: TCP: Cannot bind to [127.0.0.1]:3310: Address already in use
Aug 26 20:55:10 server clamd: ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by another process.
Aug 26 20:55:21 server clamd: ERROR: TCP: Cannot bind to [127.0.0.1]:3310: Address already in use
Aug 26 20:55:21 server clamd: ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by another process.
just FYI, I have 3 VPS with KloxoMR running on these machines. They have same problem. Even if "Enable Virus Scan" unchecked, clamd still running and took a huge memory and processor.
# ps aux
root 506 0.0 0.0 3936 400 ? S 21:05 0:00 supervise clamd
qmaill 535 0.0 0.0 4076 664 ? S 21:05 0:00 /var/qmail/bin/splogger clamd
clam 726 61.2 3.9 390928 251124 ? R 21:06 0:02 /usr/sbin/clamd
---
Then I uncheck "Enable Virus Scan" and
#chkconfig clamd off; service clamd stop; sh /script/restart-mail;
I saw clamd keep running