How to adress ClamAV daemon via Unix socket
Hi list, while I'm at it, I have another question about ClamAV's clamd: I have modified the SuSE init script that is provided with the clamav archive, because the commands to interact with the server via its Unix socket didn't work (quite probably the init script is for a later SuSE than my 8.0/2.4.18-4GB, but I'm not sure how this woul interfere). AFAIU, the script assumed that it was possible to send commands like +QUIT, +VERSION etc. to some "_clnt" that would in turn pass it - via Unix Socket - to clamd. Those commands are even mentioned on clamd's man page. And obviuosly the script was using clamdscan as that "_clnt" program. Only it didn't work at all - the commands are being interpreted as filenames-to-be-scanned by clamd and I get an error msg, file not found. Now I have to killproc it on shutdown, killproc/start it for a restart and can't reload, while the theory looks very elegant. Any hints on how i send those commands thru the Unix socket? Thanks again, Andreas -- File not found. Should I fake it? (Y/N) -- My Public PGP Keys: 1024 Bit DH/DSS: 0x869F81BA 768 Bit RSA: 0x1AD97BA5
participants (1)
-
Andreas Wagner