[Pkg-clamav-devel] Bug#881780: Bug#881780: clamav-freshclam: reconfiguring to manual update doesn't disable daemon
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Thu Nov 16 21:37:17 UTC 2017
On 2017-11-15 03:46:46 [+0200], Bob Bib wrote:
> Dear Maintainer,
Hi Bob,
>
> I've tried reconfiguring clamav-freshclam,
> to disable the daemon:
>
> # dpkg-reconfigure clamav-freshclam
> ...
> Virus database update method: manual
> ...
>
> The reconfiguration process ends up with database update and stopped daemon;
> unfortunately, after reboot, the daemon starts again.
>
> $ ps -ef | grep freshclam
> clamav 505 1 0 Nov14 ? 00:00:10 /usr/bin/freshclam -d --foreground=true
>
> Workaround.
> Add the following line to "/etc/clamav/freshclam.conf":
>
> Checks 0
During dpkg-reconfigure it asks you for checks and you probably had 24
as I did while I tried redo what you did.
If we switch to cron then there is a check for the cron file and
freshclam does not start. I have no idea why the daemon is not disabled
if switched to `manual'. I can't even tell why it is run once after
dpkg-reconfigure finishes.
That said
systemctl disable clamav-freshclam.service
should do the job without the "Checks 0" thingy. So might add it to the
script since it looks good atm.
Sebastian
More information about the Pkg-clamav-devel
mailing list