The RPM installs both a cron job (in /etc/cron.d) and a systemd timer. The cron job is set for 14 minutes after the hour and the systemd timer for 45 minutes after the hour, and then both call the same script. One or the other should be removed. There should only be a single time-triggered job to update the data.
Probably because of this I get such email every few hours: From: "(Cron Daemon)" <root@...> Subject: Cron <root@bluegene> [ -x /usr/sbin/clamav-unofficial-sigs.sh ] && /bin/bash /usr/sbin/clamav-unofficial-sigs.sh To: root@... ================================================== ERROR: Only one instance can run at the same time. ================================================== I'd suggest removing cron script too.
Or at least mark /etc/cron.d/clamav-unofficial-sigs as config file, so that changes to the file are not overwritten on a package update.
I will try to look at this. Currently looks like on my systems the systemd timer is not active (not enabled) by default, so should not conflict with cron script. Advantages(+)/disadvantages(-) of cron script: + do not need systemd (can run on centos 6 too) + simple - uses fixed time (14th minute), but can be moved to random time - active by default Advantages(+)/disadvantages(-) of service/timer script: - needs systemd (can't run on centos 6) - more complex, harder to debug + has random ability - requires activation on package installation, not sure, if it's OK to always enable it by default Let me know, if I miss something. I am still in doubt, which one should be disabled/removed. If I remove cron script, then timer MUST be activated from rpm script, otherwise after an standard rpm update most users will be blocked to receive updates. If I remove timer script and update some random sleep, everything will work well, but I think this is a step back. Systemd/timer is what new systems are using. Also automatic updates are disabled in clamav. I think they have a good reason, that user which installs clamav/clamav-unofficial-sigs by mistake will not harm signature servers. But this should be done at start, not with an update. Not sure, how to simply make an disabled-warn script like in clamav for clamav-unofficial-sigs. Any ideas?
Yes, cron script should be left on CentOS 6, but for everything using systemd service/timer script should be used, not enabled by default, as most of the other packages do.
BTW, after updating to clamav-0.101.5-7.el7 from epel-testing I did not get clamav db updates until I did systemctl enable --now clamav-freshclam. Probably such things should be written in rpm changelogs.
(In reply to Nerijus Baliūnas from comment #4) > Yes, cron script should be left on CentOS 6, but for everything using > systemd service/timer script should be used, not enabled by default, as most > of the other packages do. So you silently disabled updating of clamav unofficial sigs for most users. :-( Most users didn't read rpm changelogs.
There is a possibility to print some info after package update in postinstall, maybe that could be used? If not, then please don't remove timer script and mark cron script as config at least.
Latest clamav does just that: Updating : clamav-update-0.101.5-9.el7.x86_64 8/146 Warning: clamav-update package changed Now we provide clamav-freshclam.service systemd unit instead old scripts and the cron.d entry. Unfortunately this may break existing unattended installations. Please run 'systemctl enable clamav-freshclam --now' to enable freshclam updates again.
Looks like same problem in clamav main package: https://bugzilla.redhat.com/show_bug.cgi?id=1800226 They are reverting back to old system, at least for EL7. I think I can't do more that change this for Fedora 32+. Possibly I can change cron script to %config for current OS releases. Leaving a message is not a solution. Users are using automated updating or web GUIs, which don't display this message. Btw, I don't think anything is broken. Current version installs both, cron and service, but service is not activated by default, so by default everything works.
Except that cron script is not marked as config, and is overwritten on every package update.
FEDORA-2020-b79f547bf8 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b79f547bf8
FEDORA-EPEL-2020-98c850423a has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-98c850423a
FEDORA-EPEL-2020-563a2fe73a has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-563a2fe73a
clamav-unofficial-sigs-7.0.1-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b79f547bf8
clamav-unofficial-sigs-7.0.1-3.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-46712bb6fc
clamav-unofficial-sigs-7.0.1-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-563a2fe73a
clamav-unofficial-sigs-7.0.1-3.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-98c850423a
FEDORA-EPEL-2020-9f6b59b4e6 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-9f6b59b4e6
FEDORA-2020-ddd9880428 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-ddd9880428
clamav-unofficial-sigs-7.0.1-4.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-9f6b59b4e6
clamav-unofficial-sigs-7.0.1-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-eadb6a0d1a
clamav-unofficial-sigs-7.0.1-4.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-ddd9880428
clamav-unofficial-sigs-7.0.1-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8481dcc87e
FEDORA-2020-f842c869a3 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f842c869a3
FEDORA-2020-3d887d1791 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3d887d1791
FEDORA-EPEL-2020-a7ebf4f262 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-a7ebf4f262
clamav-unofficial-sigs-7.0.1-5.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-a7ebf4f262
clamav-unofficial-sigs-7.0.1-5.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3d887d1791
clamav-unofficial-sigs-7.0.1-5.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f842c869a3
clamav-unofficial-sigs-7.0.1-5.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-af76aa33f1
clamav-unofficial-sigs-7.0.1-5.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
clamav-unofficial-sigs-7.0.1-5.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
clamav-unofficial-sigs-7.0.1-5.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
clamav-unofficial-sigs-7.0.1-5.el8 has been pushed to the Fedora EPEL 8 stable repository. If problems still persist, please make note of it in this bug report.