On Mon, 12 Aug 2019 15:37:47 +0000
Graeme Fowler via clamav-users <clamav-users@lists.clamav.net> wrote:

> On 12/08/2019, 16:21, "Nick Howitt" <n...@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.

-- 
Tuomo Soini <t...@foobar.fi>
Foobar Linux services
+358 40 5240030
Foobar Oy <https://foobar.fi/>

_______________________________________________

clamav-users mailing list
clamav-users@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

Reply via email to