Bug 1940918

Summary: Allow custom arguments to freshclam
Product: [Fedora] Fedora EPEL Reporter: Kenneth Porter <shiva>
Component: clamavAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: anon.amish, bennie.joubert, hanspeter.gosteli, janfrode, j, lee.jnk, ondrejj, orion, pgnet.dev, redhat-bugzilla, rh-bugzilla, sergio, steve
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 03:31:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kenneth Porter 2021-03-19 14:34:47 UTC
I have need to pass "--update-db=custom" to freshclam because my hosting provider is rate-limited in getting AV database updates and I want to limit freshclam to using DatabaseCustomURL. Neither freshclam-sleep nor clamav-freshclam.service have that ability. I suggest adding a FRESHCLAM_OPTIONS variable in sysconfig for this purpose. If I edit the service files directly, they'll get silently overwritten by the next update.

Comment 1 Orion Poplawski 2021-03-20 02:54:30 UTC
Checkout systemctl edit freshclam.service - which creates an override in /etc/systemd/system/freshclam.service.d/custom.conf  - but an options file isn't a bad idea either.

Comment 2 Kenneth Porter 2021-03-20 12:11:59 UTC
Good point. I could switch from the old cron-based freshclam-sleep to the systemd unit file and completely replace the ExecStart value with a different command line.

Comment 3 Troy Dawson 2024-07-09 03:31:20 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.