geerlingguy / ansible-role-clamav

Ansible Role - ClamAV.
https://galaxy.ansible.com/geerlingguy/clamav/
MIT License
60 stars 51 forks source link

ERROR: /var/log/clamav/freshclam.log is locked by another process #3

Closed geerlingguy closed 7 years ago

geerlingguy commented 7 years ago

I got this error when installing inside a local Vagrant box for testing.

Inside the VM, I noticed:

$ sudo lsof /var/log/clamav/freshclam.log                             
COMMAND     PID   USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
freshclam 26230 clamav    3wW  REG  252,0      248 528916 /var/log/clamav/freshclam.log

So maybe don't automatically run freshclam if it's already running? Maybe we can default to not running it, then the user can choose to run it or not.

geerlingguy commented 7 years ago

And on Red Hat (CentOS 7) there isn't a systemd unit file for running freshclam in daemon mode, so I'll need to create that by hand.