bugette in ASL clamd.conf in Centos 7
Posted: Sat Jan 23, 2016 1:42 pm
I think I found a minor bug in the clamav rpm from the ASL repo for Centos 7
Once installed, in /etc/clamd.conf the path to the pid file is wrong (or the install script is missing a line to create the require directory)
Original, as installed:
# This option allows you to save a process identifier of the listening
# daemon (main thread).
# Default: disabled
PidFile /var/run/clamav/clamd.pid
But there is no /var/run/clamav directory.
So either that has to be created, or the config needs to be changed to
PidFile /var/run/clamd.pid
Without the fix, systemctl status clamd shows an error about the pid not being written
*****
In addition, something strange is going on with the socket file. The default is /tmp/clamd.socket but it never shows up.
If you change it to /var/run/clamd.socket it appears.
I don't quite know what's going on there. This may be system configuration specific.
Once installed, in /etc/clamd.conf the path to the pid file is wrong (or the install script is missing a line to create the require directory)
Original, as installed:
# This option allows you to save a process identifier of the listening
# daemon (main thread).
# Default: disabled
PidFile /var/run/clamav/clamd.pid
But there is no /var/run/clamav directory.
So either that has to be created, or the config needs to be changed to
PidFile /var/run/clamd.pid
Without the fix, systemctl status clamd shows an error about the pid not being written
*****
In addition, something strange is going on with the socket file. The default is /tmp/clamd.socket but it never shows up.
If you change it to /var/run/clamd.socket it appears.
I don't quite know what's going on there. This may be system configuration specific.