[Pkg-clamav-devel] Bug#881780: clamav-freshclam: reconfiguring to manual update doesn't disable daemon
Bob Bib
bobbib at ukr.net
Wed Nov 15 01:46:46 UTC 2017
Package: clamav-freshclam
Version: 0.99.3~beta1+dfsg-2
Severity: normal
Dear Maintainer,
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
After reboot, the daemon tries to start, but exits succesfully with a warning.
$ journalctl | grep freshclam
Nov 14 01:07:35 Computer freshclam[501]: WARNING: Number of checks must be a positive integer.
Nov 14 01:07:35 Computer systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=41/n/a
Nov 14 01:07:35 Computer systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
-- Package-specific info:
--- configuration ---
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogRotate true
LogTime true
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav
DNSDatabaseInfo current.cvd.clamav.net
ConnectTimeout 30
ReceiveTimeout 30
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
SafeBrowsing false
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
DatabaseMirror db.ua.clamav.net
DatabaseMirror database.clamav.net
--- data dir ---
total 240088
-rw-r--r-- 1 clamav clamav 766976 Nov 8 00:25 bytecode.cld
-rw-r--r-- 1 clamav clamav 127169536 Nov 14 02:14 daily.cld
-rw-r--r-- 1 clamav clamav 117892267 Nov 3 02:00 main.cvd
-rw------- 1 clamav clamav 364 Nov 14 04:14 mirrors.dat
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages clamav-freshclam depends on:
ii clamav-base 0.99.3~beta1+dfsg-2
ii debconf [debconf-2.0] 1.5.64
ii dpkg 1.18.24
ii init-system-helpers 1.50
ii libc6 2.24-17
ii libclamav7 0.99.3~beta1+dfsg-2
ii libssl1.1 1.1.0f-5
ii logrotate 3.11.0-0.1
ii lsb-base 9.20170808
ii procps 2:3.3.12-3
ii ucf 3.0036
ii zlib1g 1:1.2.8.dfsg-5
clamav-freshclam recommends no packages.
Versions of packages clamav-freshclam suggests:
pn apparmor <none>
pn clamav-docs <none>
-- debconf information:
* clamav-freshclam/SafeBrowsing: false
clamav-freshclam/internet_interface:
* clamav-freshclam/LogRotate: true
clamav-freshclam/proxy_user:
* clamav-freshclam/Bytecode: true
* clamav-freshclam/local_mirror: db.ua.clamav.net (Ukraine)
* clamav-freshclam/update_interval: 1
* clamav-freshclam/autoupdate_freshclam: manual
* clamav-freshclam/http_proxy:
* clamav-freshclam/NotifyClamd: true
* clamav-freshclam/PrivateMirror:
--
Best wishes,
Bob
More information about the Pkg-clamav-devel
mailing list