On Thu, Sep 16, 2004 at 09:41:06PM +1000, Robert S said: > I have recently installed woody with clamav-daemon and clamav-milter. I see > that the /etc/init.d/clamav-milter has the following at the start of the > startup script: > > SUPERVISOR=/usr/bin/daemon > SUPERVISORPIDFILE="/var/run/clamav/daemon-clamav-milter.pid" > SUPERVISORARGS="-F $SUPERVISORPIDFILE --name=$BASENAME --respawn" > > I've compiled daemon from source from http://www.libslack.org/daemon/ (too > many dependencies to risk installing it from "testing"). I've added > RUN_SUPERVISED=yes to /etc/defaults/clamav-milter. When I try to run it > (after shutting down clamav-milter) I get messages like this:
Don't do it this way. The script is designed so that both clamav-milter and clamd get run under daemon. In order for this to work, they need to run foregrounded. So, remove that entry from /etc/default/clamav-milter, kill any processes lying around, clean up any sockets you have left over. Set Foreground in clamav.conf, and restart clamd, then clamav-milter. > Sep 16 20:46:36 debian clamav-milter: ClamAv: Unable to bind to port > local:/var/run/clamav/clamav-milter.ctl: Address already in use > Sep 16 20:46:36 debian clamav-milter: ClamAv: Unable to create listening > socket on conn local:/var/run/clamav/clamav-milter.ctl > > I also get "error state" messages in mail.log. When I do > "/etc/init.d/clamav-milter stop" I still end up with instances of > clamav-milter running. > > Can somebody enlighten me here - otherwise I'll just keep using my crude > shell script to do this. Also make sure you have FixStaleSocket set in clamav.conf - it should be by default. Let me know if you have problems after doing this - I don't run it that wat myself, all the work was done for someone who did want to run it under daemon. Since I haven't gotten a bug report from them recently, I have to assume it's working, but let me know. -- -------------------------------------------------------------------------- | Stephen Gran | Academy: A modern school where | | [EMAIL PROTECTED] | football is taught. Institute: An | | http://www.lobefin.net/~steve | archaic school where football is not | | | taught. | --------------------------------------------------------------------------
pgpjBHY1LEOR0.pgp
Description: PGP signature