[Pkg-clamav-devel] Bug#750942: clamav-freshclam: Cron update setting creates logrotate mail spam

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jun 14 11:57:40 UTC 2014


Control: tags -1 pending

Hi Matthew,

On 08.06.2014 20:10, Matthew Gabeler-Lee wrote:
> 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.

I modified freshclam's init script to only print a warning and exit with 
status code 0, if reload-log is called, but freshclam is set to update 
via cron, see [1].

Can you confirm that this fixes your problem?

Best regards,
Andreas


1: 
http://anonscm.debian.org/gitweb/?p=pkg-clamav/clamav.git;a=commitdiff;h=0e5e2dee27d75e6ba7e0addf8c7a1d9717f79a05



More information about the Pkg-clamav-devel mailing list