[clamav-users] clamav-0.102.x annoying behavior

Arjen de Korte build+clamav at de-korte.org
Thu Nov 21 21:11:57 UTC 2019


Citeren Frans de Boer <frans at fransdb.nl>:

> On 21-11-2019 21:49, Arjen de Korte via clamav-users wrote:
>> Citeren Frans de Boer <frans at fransdb.nl>:
>>
>>> LS,
>>>
>>> Alas, I get a bit tired: every time we make an update, all the  
>>> service files are overwritten with the files the clamav team  
>>> thinks it's the best. So, every time I have to copy my  
>>> proper/working/correct files over the unwanted updates. Rather  
>>> annoying.
>>>
>>> Please, build-in a check to avoid overwriting.
>>
>> System files are *supposed* to be overwritten with every update. If  
>> you need to make changes, use
>>
>>     systemctl edit <foo>.service
>>
>> This will create /etc/systemd/system/foo.service.d/override.conf  
>> file, where you can make the necessary changes. You should *never*  
>> touch the files in /usr/lib/systemd. See 'man 5  
>> systemd-system.conf' for an explanation where to make local  
>> modifications.
>>
>>> --- Frans.
>>>
>>>
>>> _______________________________________________
>>>
>>> clamav-users mailing list
>>> clamav-users at lists.clamav.net
>>> https://lists.clamav.net/mailman/listinfo/clamav-users
>>>
>>>
>>> Help us build a comprehensive ClamAV guide:
>>> https://github.com/vrtadmin/clamav-faq
>>>
>>> http://www.clamav.net/contact.html#ml
>>
>>
>>
>>
>> _______________________________________________
>>
>> clamav-users mailing list
>> clamav-users at lists.clamav.net
>> https://lists.clamav.net/mailman/listinfo/clamav-users
>>
>>
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/vrtadmin/clamav-faq
>>
>> http://www.clamav.net/contact.html#ml
>
> Great, so if I am provided with service files that do not properly  
> work - like the clamav case - I need to overwrite them every time,  
> or follow your pointer - of which I was not aware. Luckily I always  
> keep a backup of the changed service files, learned my lessons early  
> from former projects who thought they knew what service file is good  
> for me.

This should be the case for *all* projects, it is by design in systemd  
(not the packages that use it). It is intentional that the service  
files are overwritten on updates. This allows for adding/changing  
functionality in updates, while still allowing users to deviate from  
the default settings.

> --- Frans.
>
>
> _______________________________________________
>
> clamav-users mailing list
> clamav-users at lists.clamav.net
> https://lists.clamav.net/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml






More information about the clamav-users mailing list