[clamav-users] Update policy for clamd at .service
herbert at symmetrix.net
Mon Aug 26 08:39:07 EDT 2019
RESOLVED with help of
I simply had to (removed former approach first):
1) cp /usr/lib/systemd/clam at .service /etc/systemd/system/
2) made my changes in copied file
3) perfomed systemctl daemon-reload
4) Checked changes with systemd-delta:
[.. snippet ..]
[OVERRIDDEN] /etc/systemd/system/clamd at .service →
/usr/lib/systemd/system/clamd at .service
--- /usr/lib/systemd/system/clamd at .service 2019-08-23
+++ /etc/systemd/system/clamd at .service 2019-08-26 14:17:31.144758369 +0200
@@ -1,5 +1,5 @@
-Description = clamd scanner (%i) daemon
+Description = Customized clamd scanner (%i) daemon
# Check for database existence
@@ -9,4 +9,5 @@
Type = forking
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
-Restart = on-failure
+#Restart = on-failure
+TimeoutSec = 600
Thanks to everyone who helped. Great community indeed!
On 26.08.2019 11:27, Fajar A. Nugraha via clamav-users wrote:
> On Mon, Aug 26, 2019 at 4:18 PM Herbert via clamav-users
> <clamav-users at lists.clamav.net <mailto:clamav-users at lists.clamav.net>>
> Hi all,
> System Fedora 5.2.9-200.fc30.x86_64
> ClamAv 0.101.4
> I wonder why a DNF update changes my customized
> /usr/lib/systemd/clam@,service file.
> ... because you shouldn't have modified that file?
> I had to add/change the following configurations in above
> mentioned file
> to overcome
> a timeout issue.
> TimeOutSec = 600
> #Restart = on-failure # to avoid restarting on timeout failure
> If it's an addition, you could probably use systemd drop-in
> configuration file instead, e.g.
> IMHO an update should not change the service files, but instead
> a new version of this file(s)
> with an appropriate extension. In addition DNF update should inform
> about this with a warning.
> Are you sure you're not confusing /usr/lib/systemd with files under
> /etc ? AFAIK what you wrote is correct for files in /etc.
> clamav-users mailing list
> clamav-users at lists.clamav.net
> Help us build a comprehensive ClamAV guide:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the clamav-users