Control: tags -1 pending

Hi Milko,

On 18.01.2015 11:53, Milko Krachounov wrote:
On Friday, 30 October 2014 22:14:46 you wrote:
As this warning is completely harmless, when systemd is used, I don't
think it's worth to invest a lot of time trying to fix this.

It is not completely harmless---it breaks logrotate for me. Logrotate
fails to reload the daemon  after rotating the logs, and it spams my
mailbox with errors.

Indeed logrotate doesn't work correctly under systemd. Thanks for noticing.

/etc/cron.daily/logrotate:
pkill: pidfile not valid
Try `pkill --help' for more information.


And when running the post-rotate command that's in
/etc/logrotate.d/clamav-freshclam I get the following:

  # /etc/init.d/clamav-freshclam reload-log
[....] Reloading ClamAV virus database updater: freshclampkill: pidfile not 
valid
Try `pkill --help' for more information.
  failed!

However, I would argue that the problem is not so much the missing pid file, but rather that the logrotate script calls the sysvinit script even under systemd.

I fixed this now in git [1].
To workaround this problem until the next regular clamav upload, you can apply the same changes to your /etc/logrotate.d/clamav-{daemon,freshclam}.

While at it, I also fixed the error message, this bug is about [2].

Best regards,
Andreas

1: https://anonscm.debian.org/cgit/pkg-clamav/clamav.git/commit/?id=0f68bb22ef0e7cfa8732dd558557593456a15861 2: https://anonscm.debian.org/cgit/pkg-clamav/clamav.git/commit/?id=3f3ec5509a15b85bf74fac11cecab1c5272956b0


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to