Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58059 - [clamav] Freshclam starts before network is online

Attached to Project: Arch Linux
Opened by Patrick Smits (PS0) - Sunday, 01 April 2018, 08:59 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 22 October 2018, 19:50 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The freshclam systemd service file (clamav-freshclam.service) contains no network-online dependency, causing freshclam to be started before the network is online. This in turn causes the first virus database update to fail.

To solve the problem, the following lines should be added to the [Unit] section of clamav-freshclam.service:
Wants=network-online.target
After=network-online.target

Note that users should enable their network manager's wait-online service (e.g. netctl-wait-online.service) for this solution to work.


Package version: 0.99.4-1
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 22 October 2018, 19:50 GMT
Reason for closing:  Implemented
Additional comments about closing:  0.100.2-2
Comment by loqs (loqs) - Sunday, 01 April 2018, 15:46 GMT
clamam-freshclam.service comes from upstream https://github.com/Cisco-Talos/clamav-devel/blob/master/freshclam/clamav-freshclam.service.in
Ideally upstream should make such changes to the service file or perhaps adjust freshclam to use kernel routing table changes as a signal to retry.
Comment by Levente Polyak (anthraxx) - Thursday, 10 May 2018, 02:42 GMT
PS0: did you report this upstream? Please do
Comment by Patrick Smits (PS0) - Thursday, 10 May 2018, 06:51 GMT
I already did report it upstream a few weeks ago, but it hasn't been fixed yet.

Upstream report: https://bugzilla.clamav.net/show_bug.cgi?id=12104

Loading...