Clamd AntiVirus daemon giving local socket error while restarting Exim

Clamd AntiVirus daemon giving local socket error

———-
root@ [~]# /etc/init.d/exim restart
Shutting down clamd: [FAILED]
Shutting down exim: [ OK ]
Shutting down spamd: [ OK ]
Starting clamd: ERROR: LOCAL: Socket file /var/clamd could not be bound: Permission denied
ERROR: Can’t unlink the socket file /var/clamd

[FAILED]
Starting exim: [ OK ]
0 processes (antirelayd) sent signal 9
/usr/local/cpanel/scripts/update_sa_rules: running in background
———-

Open clamd.conf file

vim /etc/clamd.conf

Comment the below lines by giving #. This will fix the error:

LocalSocket unix:/var/run/clamav/clamd.sock
FixStaleSocket yes

root@ [~]# /etc/init.d/exim restart

—————————->

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s