[Pkg-clamav-devel] Bug#775112: A possible fix
Anders Wegge Keller
wegge at wegge.dk
Wed May 6 21:06:01 UTC 2015
I have experienced the same problem with systemd repeatedly trying to start
the daemon. Every ~300 μsec for about four hours makes for 71+ million lines
of syslog.
As I see the problem, systemd does not consider the clamav-daemon service
as failed, when the preconditions are not met. Thus, it will repeatedly
attempt to start the service unit, when the socket is used. To get around
this problem, I've moved[1] ConditionPathExistsGlob from the .service unit
to the .socket unit. By moving the check to the top of the chain, it appears
that systemd will not go into an endless loop, trying to fullfill the
requirements, that are un-fullfillable.
1. Attached patch: clamav-0.98.7-systemdunit.patch
--
//Wegge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clamav-0.98.7-systemdunit.patch
Type: text/x-patch
Size: 1549 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20150506/48ec320c/attachment.bin>
More information about the Pkg-clamav-devel
mailing list