[clamav-users] Packaging ClamAV
Joel Esler (jesler)
jesler at cisco.com
Tue Aug 13 15:53:16 UTC 2019
> On Aug 13, 2019, at 7:46 AM, Tuomo Soini <tis at foobar.fi> wrote:
>
> On Mon, 12 Aug 2019 15:37:47 +0000
> Graeme Fowler via clamav-users <clamav-users at lists.clamav.net <mailto:clamav-users at lists.clamav.net>> wrote:
>
>> On 12/08/2019, 16:21, "Nick Howitt" <nick at howitts.co.uk <mailto:nick at howitts.co.uk>> wrote:
>>>
>>> Then you can't start clamd on installation?
>>
>> Run a postinstall scriptlet that calls freshclam as part of the
>> package installer, perhaps?
>
> Exactly. That's how I have done clamav packaging for years.
>
> %post scriptlet has
>
> if [ $1 -eq 1 ]; then
> systemctl start freshclam.service >/dev/null 2>&1 || :
> endif
>
> So freshclam is run immediately from package install making sure
> databases are there before anybody has time to even think starting
> clamd.
This is ideal
--
Joel Esler
Manager, Communities Division
Cisco Talos Intelligence Group
http://www.talosintelligence.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20190813/08d0aa40/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3010 bytes
Desc: not available
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20190813/08d0aa40/attachment.bin>
More information about the clamav-users
mailing list