fulltilt freedom
I've juste tested the behavior under Debian Stretch. The problem seem to be related to the /run/clamav/clamd.ctl socket file which make very long time to be created and so, when the clamav-milter service is being started, the /run/clamav/clamd.ctl socket file is not found, leading to the "WARNING: No clamd server appears to be available" message, and possibly other error messages.
Basically put:
- root@phpswitcher:~# service clamav-daemon status
- ● clamav-daemon.service - Clam AntiVirus userspace daemon
- Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
- Drop-In: /etc/systemd/system/clamav-daemon.service.d
- └─extend.conf
- Active: active (running) since Wed 2019-09-11 17:51:33 CEST; 2s ago
- Docs: man:clamd(8)
- man:clamd.conf(5)
- https://www.clamav.net/documents/
- Process: 2712 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
- Process: 2710 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
- Main PID: 2716 (clamd)
- Tasks: 1 (limit: 4915)
- CGroup: /system.slice/clamav-daemon.service
- └─2716 /usr/sbin/clamd --foreground=true
- sept. 11 17:51:33 phpswitcher systemd[1]: Starting Clam AntiVirus userspace daemon...
- sept. 11 17:51:33 phpswitcher mkdir[2710]: /bin/mkdir: impossible de créer le répertoire « /run/clamav »: Le fichier existe
- sept. 11 17:51:33 phpswitcher systemd[1]: Started Clam AntiVirus userspace daemon.
Display More
- root@phpswitcher:~# ls /run/clamav
- clamav-milter.pid
As you can see here, the clamav-daemon is running but the /run/clamav/clamd.ctl socket file is not created yet....
However, after few seconds:
- root@phpswitcher:~# ls /run/clamav
- clamav-milter.pid clamd.ctl
Problem is that the clamav-milter service, is started just after the clamav-damon service but at this time, the /run/clamav/clamd.ctl socket file has not been created yet...
Well, this has nothing to do with the plugin in fact... I need investigate further to know why the /run/clamav/clamd.ctl socket file creation is so long...