[clamav-users] ClamAV on RHEL 6.8 (IBM Power 8 -PPC64)

Carlos Velasco carlos.velasco at nimastelecom.com
Tue May 16 19:22:26 UTC 2017


> # cat /etc/rc.d/rc.local
> #!/bin/sh
> #
> # This script will be executed *after* all the other init scripts.
> # You can put your own initialization stuff in here if you don't
> # want to do the full Sys V style init stuff.
> touch /var/lock/subsys/local
> /usr/local/sbin/clamd
> /usr/local/sbin/clamav-milter
> /usr/local/bin/freshclam -d

IMHO rc.local is not the best place to put this at all...
 
> # clamd status
> ERROR: LOCAL: Socket file /var/run/clamav/clamd.socket is in use by another
> process.

You are calling clamd *daemon* with a "status" argument that it doesn't recognize.
As you are using an init system you should use a init.d/rc.d script (like "/etc/rc.d/clamav"). That script usually accepts a "status" argument, but clamd (daemon) does not.

Regards,
Carlos Velasco




More information about the clamav-users mailing list