freebsd-6-stable clamav-0.94_1 problems
George Mamalakis
mamalos at eng.auth.gr
Fri Oct 3 13:33:32 UTC 2008
Hello everybody,
today I updated my port of clamav, from clamav-0.92-something to
clamav-0.94_1. Clamd restarted nicely; but when I tried to restart
clamav-milter, I encountered the following message:
Waiting for clamd socket.. 60.. 50.. 40.. 30.. 20.. 10..
There is no clamd socket (/var/run/clamav/clamd.sock)!
And it was right! There was no /var/run/clamav/clamd.sock socket on my
system, instead there was a /var/run/clamav/clamd. But
/usr/local/etc/rc.d/clamav-milter looks for /var/run/clamav/clamd.sock
in its clamav_clamd_socket variable.
Then I looked up the same variable (clamav_clamd_socket) in the startup
script /usr/local/etc/rc.d/clamav-clamd. It was
/var/run/clamav/clamd.sock! But whenever I was restarting clamd via
/usr/local/etc/rc.d/clamav-clamd it kept creating the socket
/var/run/clamav/clamd (not clamd.sock as it was supposed to). Even when
I set the clamav_clamd_socket in /etc/rc.conf and restarted clamd, I
still would get the same results. The interesting thing is, that
/usr/local/etc/rc.d/clamav-milter was aware of the changes made in
/etc/rc.conf regarding the clamav_clamd_socket variable, whereas
/usr/local/etc/rc.d/clamav-clamd wasn't.
I assume that /usr/local/etc/rc.d/clamav-clamd is not checking
/etc/rc.conf of where it should place its socket, nor does clamd read it
correctly from /usr/local/etc/rc.d/clamav-clamd, since even though the
startup script has the entry :
: ${clamav_clamd_socket="/var/run/clamav/clamd.sock"}
in it, clamd keeps on creating the /var/run/clamav/clamd socket instead.
In order for my scripts to be useable, I have changed /etc/rc.conf to
state:
clamav_clamd_socket="/var/run/clamav/clamd"
so as to override what /usr/local/etc/rc.d/clamav-milter thinks.
If someone knows why this happens I would be grateful if they could help
me.
Thank you for your time, in advance,
regards,
--
George Mamalakis
IT Officer
Electrical and Computer Engineer (Aristotle Un. of Thessaloniki),
MSc (Imperial College of London)
Department of Electrical and Computer Engineering
Faculty of Engineering
Aristotle University of Thessaloniki
phone number : +30 (2310) 994379
More information about the freebsd-ports-bugs
mailing list