lisenet / clamav-daily

Automate ClamAV to perform daily system scans and send email notifications.
BSD 3-Clause "New" or "Revised" License
38 stars 20 forks source link

check whether freshclam daemon is running #4

Closed jksinton closed 7 years ago

jksinton commented 7 years ago

Instead of removing the log file for freshclam, could you check whether it's running as a daemon?

If it is, you don't really need to update the database, as it's already updating the database based on the config settings.

If it's not running as a daemon, then you should be able to run freshclam without the lock error.

lisenet commented 7 years ago

You can check if the file is in use by the daemon. And you would be right, you shouldn't need to update the DB in such case.