Package: clamav-freshclam Version: 0.98.7+dfsg-0+deb8u1 Dear maintainer,
Thanks for packaging ClamAV for Debian! There is a problem, however, with the file /etc/logrotate.d/clamav-freshclam under systemd: it fails if clamav-freshclam is not running as a daemon (such as being run via a cron job, as is the case on my system). In particular, if the daemon is not active, "systemctl -q is-active" returns an error value of 3, which causes the script to fail. The solution is to add "|| :" to the end of that line. The attached patch does exactly that. Could you please apply it. I'm guessing systemd is still new to all of us---certainly to me! Yours truly, John Zaitseff -- John Zaitseff ,--_|\ The ZAP Group Phone: +61 2 9643 7737 / \ Sydney, Australia E-mail: j.zaits...@zap.org.au \_,--._* http://www.zap.org.au/ v
--- /etc/logrotate.d/clamav-freshclam.orig 2015-06-09 10:55:58.597662646 +1000 +++ /etc/logrotate.d/clamav-freshclam 2015-06-14 05:35:30.653954361 +1000 @@ -7,7 +7,7 @@ create 640 clamav adm postrotate if [ -d /run/systemd/system ]; then - systemctl -q is-active clamav-freshclam && systemctl kill --signal=SIGHUP clamav-freshclam + systemctl -q is-active clamav-freshclam && systemctl kill --signal=SIGHUP clamav-freshclam || : else /etc/init.d/clamav-freshclam reload-log > /dev/null fi