This package installs systemd files, yet its logrotate file assumes OpenRC. Reproducible: Always
Why do we need that "logfix" magic in init.d file? Not sure if also needed with systemd (in that case, we would probably need to split it out of init.d file to let us share that "logfix")
I don't use systemd (and don't intend to set up a box with it) so if you want this, please submit a new init script / patch re-assigned it to antivirus@g.o for now since it is clearly antivirus mainly and not net-mail (i know both herds are in metadata.xml @systemd@g.o If you want to feel free to take this bug (if not i would appreciate if you could look at any patches/init scripts that might get attached )
(In reply to Thomas Raschbacher from comment #2) > re-assigned it to antivirus@g.o for now since it is clearly antivirus mainly > and not net-mail (i know both herds are in metadata.xml If antivirus is the primary maintainer, please re-order the herd tags so that it comes first in metadata.xml. Thanks.
someone from systemd project please check this - or take the bug if you want to
@pachos: the init script is not from me, i intend to rework the init files anyway to split it for the seperate services ( marking this depending on Bug #272963 )
*** Bug 649762 has been marked as a duplicate of this bug. ***
*** Bug 684774 has been marked as a duplicate of this bug. ***
Different question: since Systemd can manage logs and log rotation do we actually need logrotate to work with systemd? (I checked some other packages and did not find any systemd specific logrotate stuff -- e.g. apache,..)
The logfix thingy is gone in v0.103.0, and this logrotate script should work for both OpenRC and systemd: /var/log/clamav/clamav.log { missingok postrotate /bin/kill -HUP `cat /run/clamd.pid 2>/dev/null` 2>/dev/null || true endscript } I'll test it a bit and then commit it for >= 0.103.0.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76622421052176c051df0c19a518d6c064aa5e5e commit 76622421052176c051df0c19a518d6c064aa5e5e Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-09-22 13:24:36 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-09-23 03:23:24 +0000 app-antivirus/clamav: new logrotate files for v0.103.0. Now that each ClamAV daemon has its own OpenRC service, we separate the logrotate entries as well. This fixes an old bug where we relied on the service manager being OpenRC. Closes: https://bugs.gentoo.org/508520 Closes: https://bugs.gentoo.org/709780 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> app-antivirus/clamav/clamav-0.103.0.ebuild | 5 ++++- app-antivirus/clamav/files/clamav-milter.logrotate | 25 ++++++++++++++++++++++ app-antivirus/clamav/files/clamd.logrotate | 17 +++++++++++++++ app-antivirus/clamav/files/freshclam.logrotate | 17 +++++++++++++++ 4 files changed, 63 insertions(+), 1 deletion(-)
I just installed clamav, with openrc and NO logrotate file installed at all.
(In reply to Christophe PEREZ from comment #11) > I just installed clamav, with openrc and NO logrotate file installed at all. Please file a new bug, including emerge --info app-antivirus/clamav.