Since the latest upgrade on FreeBSD, clamd and freshclam both do not seem to be reading my configuration files. They try to start as the default clamav user which does not work for me.
This is the error:
Starting clamav_freshclam. ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!). ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). /usr/local/etc/rc.d/clamav-freshclam: WARNING: failed to start clamav_freshclam
# /usr/local/etc/rc.d/clamav-clamd start Starting clamav_clamd. ERROR: LOCAL: Socket file /var/run/clamav/clamd could not be bound: Permission denied
So I have to start them this way:
clamd -c /usr/local/etc/clamd.conf freshclam --config-file=/usr/local/etc/freshclam.conf -d
I haven’t filed a bug report (yet). Let me know if you have the same problem!