-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clamav freshclam fails when /var/log/clamav/freshclam.log does not exist #1155
Comments
I can look into this and put a fix in for it |
@Kiggins26 thanks I look forward to what you find. I imagine the issue is that freshclam does not try to create the "clamav" subdirectory. It expects to be able to create "freshclam.log" directly and fails when the directory does not exist. I don't really Something to consider if you try to change it so freshclam does try to create the missing subdirectories... If freshclam is run as root, then I think freshclam should |
Haven't gotten a lot of time to look at it. Have a potential fix, but have not recreated the issue. Someone can take it on if they would like, if not I will take a look at it in the following week |
I recently switched from Fedora to CachyOS (arch based). Installed clamav and enabled clamav-freshclam.service. On another machine still running Fedora 39, their clamav-freshclam doesn't seem to use a log? /var/log/clamav does not exist, yet the service runs with no error. Besides Fedora packaging freshclam separately, I don't know what else they do to it. |
I think the PR above should suffice for a fix. I've put it in draft because I did not have enough time to test it to my liking, which I plan to do in the following days/week and move it for review when I think its solid enough. |
Describe the bug
When
/var/log/clamav/freshclam.log
does not exist (such as when/var/log
is mounted astmpfs
to extend SSD (or SD card on rpis) longevity), freshclam does not create the log file and simply crashes (the systemd freshclam service).How to reproduce the problem
/var/log/
astmpfs
.clamav-freshclam.service
Clamconf:
Attachments
Logs:
The text was updated successfully, but these errors were encountered: