Skip to content
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

Default clamd_reload_opt Always Returns Error #424

Open
LarryStarr01 opened this issue Jan 9, 2024 · 0 comments
Open

Default clamd_reload_opt Always Returns Error #424

LarryStarr01 opened this issue Jan 9, 2024 · 0 comments

Comments

@LarryStarr01
Copy link

The cron job always logs, and emails, and error message:

ERROR: Failed to reload, trying again

I found this is due to invoking clamscan with a non-existent argument "--reload".
I've worked around it in my local system by creating a local script to invoke reloading the database:

`#!/usr/bin/bash
#
socket=$(systemctl status clamav-daemon.socket | awk '/Listen:/ {print $2}')

if [ -n "$socket" ]; then
        echo 'RELOAD' | nc -U $socket
else
        echo "ERROR: Can't find clamd socket"
fi

There's probably a better way to do this but, it quiets the repeated error messages from the cron job on my system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant