[Pkg-clamav-devel] Bug#830482: clamav-freshclam: duplicate logging with systemd
Marki
spam at marki-online.net
Fri Jul 8 12:39:26 UTC 2016
Package: clamav-freshclam
Version: 0.99.2+dfsg-0+deb8u1
Severity: normal
Dear Maintainer,
freshclam is configured to log to its logfile by itself (UpdateLogFile).
However systemd unit file (as shipped with jessie) runs freshclam in
foreground and redirects its stdout to syslog.
This causes the log to go both to configured UpdateLogFile and to
/var/log/syslog.
Don't know if freshclam prints anything useful to stdout which isn't also in
logfile. If not, then maybe configure systemd unit to ignore stdout and
redirect only stderr to syslog.
-- 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 yes
Bytecode true
#NotifyClamd /etc/clamav/clamd.conf
# Check for new database 24 times a day
Checks 48
DatabaseMirror clamav.mojhosting.sk
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
--- data dir ---
lrwxrwxrwx 1 root root 32 Jun 23 22:56 /var/lib/clamav -> /var/spool/vscan/var/lib/clamav/
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
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.2+dfsg-0+deb8u1
ii debconf [debconf-2.0] 1.5.56
ii dpkg 1.17.27
ii init-system-helpers 1.22
ii libc6 2.19-18+deb8u4
ii libclamav7 0.99.2+dfsg-0+deb8u1
ii libssl1.0.0 1.0.1t-1+deb8u2
ii logrotate 3.8.7-1+b1
ii lsb-base 4.1+Debian13+nmu1
ii procps 2:3.3.9-9
ii ucf 3.0030
ii zlib1g 1:1.2.8.dfsg-2+b1
clamav-freshclam recommends no packages.
Versions of packages clamav-freshclam suggests:
pn apparmor <none>
pn clamav-docs <none>
-- debconf information:
clamav-freshclam/update_interval: 24
clamav-freshclam/SafeBrowsing: false
clamav-freshclam/internet_interface:
clamav-freshclam/autoupdate_freshclam: daemon
clamav-freshclam/http_proxy:
clamav-freshclam/local_mirror: db.local.clamav.net
clamav-freshclam/NotifyClamd: true
clamav-freshclam/LogRotate: true
clamav-freshclam/proxy_user:
clamav-freshclam/PrivateMirror:
clamav-freshclam/Bytecode: true
More information about the Pkg-clamav-devel
mailing list