View Single Post
  #27  
Old 27th November 2010, 19:10
pturkey pturkey is offline
Junior Member
 
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default Better fix

Fedora 13 and 14 I have found that have the same problem.
The clamd.pid is the problem not the clamd.sock.

You can repair this problem two ways.
1:
This seems to me to be the best way.
by editing the /etc/clamd.d/amavisd.conf
and change the line "PidFile /var/run/amavisd/clamd.pid" to "PidFile /var/run/clamd.amavisd/clamd.pid"
and create the new folder.
mkdir /var/run/clamd.amavisd/
chown amavis.amavis /var/run/clamd.amavisd/

2:
I think that this fix will be broken again on the next update.
edit the /usr/share/clamav/clamd-wrapper
and change CLAMD_PIDFILE=/var/run/clamd.${CLAMD_SERVICE}/clamd.pid to CLAMD_PIDFILE=/var/run/${CLAMD_SERVICE}/clamd.pid
Reply With Quote