[Pkg-clamav-devel] Bug#750942: clamav-freshclam: Cron update setting creates logrotate mail spam
Matthew Gabeler-Lee
cheetah at fastcat.org
Sun Jun 8 18:10:14 UTC 2014
Package: clamav-freshclam
Version: 0.98.4~rc1+dfsg-3
Severity: normal
If freshclam is set to update via cron, then there is no freshclam pid (but
the init script always creates an empty pid file), and thus I get an email
every day, thus:
/etc/cron.daily/logrotate:
pkill: pidfile not valid
Try `pkill --help' for more information.
Because the logrotate script calls "/etc/init.d/clamav-freshclam reload-log
>/dev/null", which calls pkill pointing at the empty (and thus invalid) pid
/file.
-- Package-specific info:
--- configuration ---
#Automatically Generated by clamav-base postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-base
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
TemporaryDirectory /tmp
User clamav
AllowSupplementaryGroups true
ScanMail true
ScanArchive true
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog false
LogRotate true
LogFacility LOG_LOCAL6
LogClean false
LogVerbose false
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
SelfCheck 3600
Foreground false
Debug false
ScanPE true
MaxEmbeddedPE 10M
ScanOLE2 true
ScanHTML true
MaxHTMLNormalize 10M
MaxHTMLNoTags 2M
MaxScriptNormalize 5M
MaxZipTypeRcg 1M
ScanSWF true
DetectBrokenExecutables true
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
IdleTimeout 30
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
DetectPUA false
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 5
SendBufTimeout 200
MaxQueue 100
ExtendedDetectionInfo true
OLE2BlockMacros false
ScanOnAccess false
AllowAllMatchScan true
ForceToDisk false
DisableCertCheck false
StreamMaxLength 10M
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
Bytecode true
BytecodeSecurity TrustSigned
BytecodeTimeout 60000
OfficialDatabaseOnly false
CrossFilesystems true
# 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 no
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav/
DNSDatabaseInfo current.cvd.clamav.net
AllowSupplementaryGroups false
PidFile /var/run/clamav/freshclam.pid
ConnectTimeout 30
ReceiveTimeout 30
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
SafeBrowsing false
Bytecode true
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
DatabaseMirror db.us.clamav.net
--- data dir ---
total 124900
-rw-r--r-- 1 clamav clamav 373760 May 24 00:29 bytecode.cld
-rw-r--r-- 1 clamav clamav 62787584 Jun 8 13:57 daily.cld
-rw-r--r-- 1 clamav clamav 64720632 Sep 18 2013 main.cvd
-rw------- 1 clamav clamav 1248 Jun 8 14:03 mirrors.dat
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages clamav-freshclam depends on:
ii clamav-base 0.98.4~rc1+dfsg-3
ii debconf [debconf-2.0] 1.5.53
ii libc6 2.18-7
ii libclamav6 0.98.4~rc1+dfsg-3
ii libssl1.0.0 1.0.1g-4
ii logrotate 3.8.7-1
ii lsb-base 4.1+Debian12
ii ucf 3.0029
ii zlib1g 1:1.2.8.dfsg-1
clamav-freshclam recommends no packages.
Versions of packages clamav-freshclam suggests:
pn apparmor <none>
pn clamav-docs <none>
-- Configuration Files:
/etc/logrotate.d/clamav-freshclam changed:
/var/log/clamav/freshclam.log {
rotate 12
weekly
compress
delaycompress
missingok
create 640 clamav adm
postrotate
/etc/init.d/clamav-freshclam reload-log > /dev/null
endscript
}
-- debconf information:
* clamav-freshclam/LogRotate: true
* clamav-freshclam/NotifyClamd: false
* clamav-freshclam/SafeBrowsing: false
* clamav-freshclam/autoupdate_freshclam: cron
* clamav-freshclam/http_proxy:
* clamav-freshclam/Bytecode: true
* clamav-freshclam/PrivateMirror:
* clamav-freshclam/update_interval: 1
clamav-freshclam/proxy_user:
clamav-freshclam/mirrors.txt-note:
clamav-freshclam/internet_interface:
* clamav-freshclam/local_mirror: db.local.clamav.net
More information about the Pkg-clamav-devel
mailing list