[Pkg-clamav-devel] Bug#1154993: clamav-freshclam-once systematically fails because /var/log/clamav/freshclam.log is already locked

Edmund Lodewijks edmund at proteamail.com
Thu Dec 3 12:47:11 GMT 2026


On Thu, 3 Dec 2026 10:18:37 +0100 pelzi at flying-snail.de wrote:
> I believe the proper fix is to remove clamav-freshclam.service, as it is 
> obsolete: alongside of clamav-freshclam-once.service, 
> clamav-freshclam-once.timer is installed, triggering repeated execution 
> of the freshclam serivce, which does regularly fail if 
> clamav-freshclam.service is running.
> 
> In fact, clamav-freshclam.service is not intended to run, but the 
> inhibiting condition "ConditionPathExists=!/etc/cron.d/clamav-freshclam" 
> is checking for the old style cron invocation only, and fails to 
> deactivate on the presence of the timer.

clamav-freshclam.{service,timer} do seem to be drop-in replacements for 
the old cron scripts, yes. As such, they have a value, for those who 
only want to run updates at certain times only; unlike the daemon.

The default install activates only the daemon (both daemon and "once" 
lock the same log file, so only one can be enabled at a time -- this is 
the error that is fixed now in commit f1f97406 on Salsa).

I see no reason to remove a valid way to run freshclam updates, that 
comes straight from upstream.

> So I guess, running freshclam as a daemon has ever only been a fallback 
> for systems without cron. This fallback seems no longer necessary, as 
> only systemd is required.

I'm not sure I am following.

The case for keeping freshclam-once would be to have a cron-style, 
fixed-time(s) run of updates, rather than whenever the daemon is 
programmed to run updates.

> 
> Andreas.

Thank you for your input!

     Edmund


-- 
Edmund Lodewijks <edmund at proteamail.com>
TZ: UTC+2 / GMT+2



More information about the Pkg-clamav-devel mailing list