Re: [clamav-users] clamd.exe becomes unresponsive

2019-08-13 Thread David Miller via clamav-users
Hi, All:

Good news update: Clamd.exe is running longer than ever so far...
nearly 12 hours.  I had just switched the SelfCheck value from the
default 600 to 1200 to see if that made a difference.  I also enabled
LogVerbose.  Those are the only 2 updates to the clamd.config.  One
other change I made is to call PING less often to see if clamd.exe is
still responsive.  Right now, it checks once per minute... previously,
it checked every 15 seconds. I don't believe this change had anything
to do with tonight's improved result because initially, I wasn't
calling PING at all - the PINGs were added as a result of the
unresponsiveness.  I'm optimistic, but still stumped.  I suspect the
change relates to the less frequent SelfCheck calls.
Thoughts/suggestions/etc. very appreciated!

Thanks,
-Dave

On Tue, Aug 13, 2019 at 1:15 PM David Miller  wrote:
>
> Hello, All:
>
> clamav-0.101.2-win-x64-portable
> clamav-0.101.3-win-x64-portable
>
> After clamd.exe runs successfully for several hours, it becomes unresponsive.
> Hosted on 2 Windows 2016 Servers and a Windows 10 - all respond the same.
> Last log entry for clamd shows: "SelfCheck: Database status OK."  An example
> of the unresponsive timelines from one of the deployments is pasted below.
>
> Restarted Unresponsive:  Timespan:
> 8/10/19 01:30:30 a.m.   8/10/19 06:06:29 a.m.   4:35:59
> 8/10/19 06:06:30 a.m.   8/10/19 12:34:12 p.m.   6:27:42
> 8/10/19 12:34:13 p.m.   8/10/19 07:01:55 p.m.   5:32:18
> 8/10/19 07:01:56 p.m.   8/11/19 01:29:37 a.m.   5:32:19
> 8/11/19 01:29:38 a.m.   8/11/19 06:05:35 a.m.   4:35:57
> 8/11/19 06:05:37 a.m.   8/11/19 12:33:17 p.m.   6:27:40
> 8/11/19 12:33:19 p.m.   8/11/19 07:01:00 p.m.   5:32:19
> 8/11/19 07:01:01 p.m.   8/12/19 01:28:42 a.m.   6:27:41
>
> Clamd.exe remains responsive for the timespans listed above, but then
> becomes unresponsive and I have to kill the process and start a new
> instance of clamd.exe. (The outage time consistency is telling, but
> what it's telling I still don't know.) FWIW: I run freshclam once an hour,
> but it seems to have no impact on the unresponsiveness of clamd. Also, the
> clamd.exe becomes unresponsive whether or not there are files being
> scanned. I've tried a few .conf changes with no noticeable impact on the
> unresponsiveness. Any pointers/tools/suggestions are greatly appreciated.
>
> I've appended my current .conf results to this email.
>
> Thanks for your time & have a great day!
> -Dave,
>
>
> clamconf -n
>
> Checking configuration files in
> C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable
>
> Config file: clamd.conf
> ---
> LogFile = "C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable\clamd.log"
> LogFileMaxSize = "2097152"
> LogTime = "yes"
> LogVerbose = "yes"
> TCPSocket = "3310"
> TCPAddr = "127.0.0.1"
> SendBufTimeout = "200"
> IdleTimeout = "60"
> SelfCheck = "1200"
>
> Config file: freshclam.conf
> ---
> LogFileMaxSize = "2097152"
> LogTime = "yes"
> UpdateLogFile =
> "C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable\freshclam.log"
> DatabaseMirror = "database.clamav.net"
>
> clamav-milter.conf not found
>
> Software settings
> -
> Version: 0.101.3
> Optional features supported: MEMPOOL AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 RAR JIT
>
> Database information
> 
> Database directory:
> C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable\database
> bytecode.cvd: version 330, sigs: 94, built on Wed Jul 17 08:11:08 2019
> daily.cld: version 25540, sigs: 1713558, built on Tue Aug 13 03:16:47 2019
> main.cvd: version 58, sigs: 4566249, built on Wed Jun  7 16:38:10 2017
> Total number of signatures: 6279901
>
> Platform information
> 
> uname: Microsoft Windows 6.2 SP0.0 Build 9200
> OS: win32, ARCH: x86_64, CPU: x86_64
> zlib version: 1.2.11 (1.2.11), compile flags: 65
> Triple: x86_64-pc-win32
> CPU: i686, Little-endian
> platform id: 0x10250800077c0100077c
>
> Build information
> -
> Microsoft Visual C++: (0.7.124)
> Microsoft Visual C++ 1916
> sizeof(void*) = 8
> Engine flevel: 102, dconf: 102

___

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


[clamav-users] clamd.exe becomes unresponsive

2019-08-13 Thread David Miller via clamav-users
Hello, All:

clamav-0.101.2-win-x64-portable
clamav-0.101.3-win-x64-portable

After clamd.exe runs successfully for several hours, it becomes unresponsive.
Hosted on 2 Windows 2016 Servers and a Windows 10 - all respond the same.
Last log entry for clamd shows: "SelfCheck: Database status OK."  An example
of the unresponsive timelines from one of the deployments is pasted below.

Restarted Unresponsive:  Timespan:
8/10/19 01:30:30 a.m.   8/10/19 06:06:29 a.m.   4:35:59
8/10/19 06:06:30 a.m.   8/10/19 12:34:12 p.m.   6:27:42
8/10/19 12:34:13 p.m.   8/10/19 07:01:55 p.m.   5:32:18
8/10/19 07:01:56 p.m.   8/11/19 01:29:37 a.m.   5:32:19
8/11/19 01:29:38 a.m.   8/11/19 06:05:35 a.m.   4:35:57
8/11/19 06:05:37 a.m.   8/11/19 12:33:17 p.m.   6:27:40
8/11/19 12:33:19 p.m.   8/11/19 07:01:00 p.m.   5:32:19
8/11/19 07:01:01 p.m.   8/12/19 01:28:42 a.m.   6:27:41

Clamd.exe remains responsive for the timespans listed above, but then
becomes unresponsive and I have to kill the process and start a new
instance of clamd.exe. (The outage time consistency is telling, but
what it's telling I still don't know.) FWIW: I run freshclam once an hour,
but it seems to have no impact on the unresponsiveness of clamd. Also, the
clamd.exe becomes unresponsive whether or not there are files being
scanned. I've tried a few .conf changes with no noticeable impact on the
unresponsiveness. Any pointers/tools/suggestions are greatly appreciated.

I've appended my current .conf results to this email.

Thanks for your time & have a great day!
-Dave,


clamconf -n

Checking configuration files in
C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable

Config file: clamd.conf
---
LogFile = "C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable\clamd.log"
LogFileMaxSize = "2097152"
LogTime = "yes"
LogVerbose = "yes"
TCPSocket = "3310"
TCPAddr = "127.0.0.1"
SendBufTimeout = "200"
IdleTimeout = "60"
SelfCheck = "1200"

Config file: freshclam.conf
---
LogFileMaxSize = "2097152"
LogTime = "yes"
UpdateLogFile =
"C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable\freshclam.log"
DatabaseMirror = "database.clamav.net"

clamav-milter.conf not found

Software settings
-
Version: 0.101.3
Optional features supported: MEMPOOL AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 RAR JIT

Database information

Database directory:
C:\MyStuff\Tools\ClamAv\clamav-0.101.3-win-x64-portable\database
bytecode.cvd: version 330, sigs: 94, built on Wed Jul 17 08:11:08 2019
daily.cld: version 25540, sigs: 1713558, built on Tue Aug 13 03:16:47 2019
main.cvd: version 58, sigs: 4566249, built on Wed Jun  7 16:38:10 2017
Total number of signatures: 6279901

Platform information

uname: Microsoft Windows 6.2 SP0.0 Build 9200
OS: win32, ARCH: x86_64, CPU: x86_64
zlib version: 1.2.11 (1.2.11), compile flags: 65
Triple: x86_64-pc-win32
CPU: i686, Little-endian
platform id: 0x10250800077c0100077c

Build information
-
Microsoft Visual C++: (0.7.124)
Microsoft Visual C++ 1916
sizeof(void*) = 8
Engine flevel: 102, dconf: 102

___

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


Re: [clamav-users] About ClamAV 0.101.3 builds on AIX6.1

2019-08-13 Thread Micah Snyder (micasnyd) via clamav-users
Hi Tsutomu,

It looks like you are seeing a similar issue to what these folks had when 
building libtool on Solaris:
https://forums.gentoo.org/viewtopic-t-1080858-start-0.html

Here the user solved it by changing the NM environment variable: 
https://lists.gnu.org/archive/html/libtool/2012-11/msg00014.html

Ex:
NM=/usr/xpg4/bin/nm\ \-p
export NM

For Solaris 10 in the past, we've found that if you're not using the OpenCSW 
tools you need to use gnm (gnu's nm utility).  The same is probably true for 
AIX.  
Please install gnm and give this a try (I've made the assumption that it'll 
install to /usr/local.  Of course adjust the path as needed. I'm not sure if 
the "-p" argument is required:

./configure NM=/usr/local/bin/gnm AR="/usr/bin/ar -X64" LDFLAGS="-maix64 
-Wl,-bbigtoc -lbsd -lclamav" CFLAGS="-maix64" CXXFLAGS="-maix64" 
LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
--exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav 
--sbindir=/usr/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
--datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disable-clamav 
--enable-shared --disable-static --disable-zlib-vcheck --with-pcre 
--with-openssl=/opt/freeware --enable-strni

Regards,
Micah   

On 8/12/19, 10:04 PM, "clamav-users on behalf of Tsutomu Oyamada" 
 
wrote:

Hi, all

I am trying to build ClamAV 0.101.3 on AIX6.1.
I did the following procedure, but it fails to make.
What can I do?
Excuse me in a long sentence below.

1. Download clamav-0.101.3.tar.gz package.
2. Extract package.
3. Execute configure

AR="/usr/bin/ar -X64" LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd -lclamav"
./configure CFLAGS="-maix64" CXXFLAGS="-maix64" LD
FLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
--exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav --sbindir=/us
r/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
--datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disa
ble-clamav --enable-shared --disable-static --disable-zlib-vcheck 
--with-pcre --with-openssl=/opt/freeware --enable-strni

checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking build system type... powerpc-ibm-aix6.1.0.0
checking host system type... powerpc-ibm-aix6.1.0.0
checking target system type... powerpc-ibm-aix6.1.0.0
creating target.h - canonical system defines
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of g++... gcc3
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking the archiver (/usr/bin/ar -X64) interface... ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes

Re: [clamav-users] Packaging ClamAV

2019-08-13 Thread Joel Esler (jesler) via clamav-users


> On Aug 13, 2019, at 7:46 AM, Tuomo Soini  wrote:
> 
> On Mon, 12 Aug 2019 15:37:47 +
> Graeme Fowler via clamav-users  > wrote:
> 
>> On 12/08/2019, 16:21, "Nick Howitt" > > 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

smime.p7s
Description: S/MIME cryptographic signature

___

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


Re: [clamav-users] Update Frequency (15 min or 10 mins)

2019-08-13 Thread Joel Esler (jesler) via clamav-users
And to further answer your question, at present, we are only updating the 
daily.cvd daily.

> On Aug 13, 2019, at 8:23 AM, Reio Remma via clamav-users 
>  wrote:
> 
> On 13/08/2019 15:17, Manna, Mohammed via clamav-users wrote:
>> Hello,
>>  
>> From the docs – it says that the most frequent update of clam AV definitions 
>> is 4 times an hour (e.g. every 15 mins).
>> 
>> However, we were investigating the clamAV logs, and it shows the following:
>>  
>> Tue Aug 13 12:11:01 2019 -> Self checking every 600 seconds.
>>  
>> Our confusion is here – is it actually the definition update frequency, or 
>> something else.
>> 
>> Apologies for any incorrect assumptions.
>> 
>> Regards,
>> MAnna
> 
> That's the interval at which ClamAV checks its local database files.
> 
> Good luck,
> Reio
> 
> ___
> 
> 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 



smime.p7s
Description: S/MIME cryptographic signature

___

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


Re: [clamav-users] clamsubmit error

2019-08-13 Thread Joel Esler (jesler) via clamav-users
102.0-beta seems to be working correctly, haven't established why exactly.  
Jerry, can you replicate?

> On Aug 13, 2019, at 9:06 AM, Arnaud Jacques  
> wrote:
> 
> Hello Jerry,
> 
> It works now for me (clamsubmit compiled from 0.102.0-beta sources).
> It seems older version does not work anymore.
> 
> 
> Le 13/08/2019 à 15:02, Jerry via clamav-users a écrit :
>> On Mon, 12 Aug 2019 16:43:23 +0200, Arnaud Jacques stated:
>>> Same error message with 0.102.0-beta and 0.101.2
>> * truncated *
>> FreeBSD 12.0-RELEASE-p9
>> clamd -V
>> ClamAV 0.101.2/25540/Tue Aug 13 04:16:47 2019
>> invalid cfduid and/or session id values provided by clamav.net/presigned. 
>> Unable to continue submission.
> 
> -- 
> Cordialement / Best regards,
> 
> Arnaud Jacques
> Gérant de SecuriteInfo.com
> 
> Téléphone : +33-(0)3.44.39.76.46
> E-mail : a...@securiteinfo.com
> Site web : https://www.securiteinfo.com
> Facebook : https://www.facebook.com/pages/SecuriteInfocom/132872523492286
> Twitter : @SecuriteInfoCom
> 
> Securiteinfo.com
> La Sécurité Informatique - La Sécurité des Informations.
> 266, rue de Villers
> 60123 Bonneuil en Valois
> 
> ___
> 
> 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



smime.p7s
Description: S/MIME cryptographic signature

___

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


Re: [clamav-users] clamsubmit error

2019-08-13 Thread Arnaud Jacques

Hello Jerry,

It works now for me (clamsubmit compiled from 0.102.0-beta sources).
It seems older version does not work anymore.


Le 13/08/2019 à 15:02, Jerry via clamav-users a écrit :

On Mon, 12 Aug 2019 16:43:23 +0200, Arnaud Jacques stated:

Same error message with 0.102.0-beta and 0.101.2


* truncated *

FreeBSD 12.0-RELEASE-p9
clamd -V
ClamAV 0.101.2/25540/Tue Aug 13 04:16:47 2019

invalid cfduid and/or session id values provided by clamav.net/presigned. 
Unable to continue submission.



--
Cordialement / Best regards,

Arnaud Jacques
Gérant de SecuriteInfo.com

Téléphone : +33-(0)3.44.39.76.46
E-mail : a...@securiteinfo.com
Site web : https://www.securiteinfo.com
Facebook : https://www.facebook.com/pages/SecuriteInfocom/132872523492286
Twitter : @SecuriteInfoCom

Securiteinfo.com
La Sécurité Informatique - La Sécurité des Informations.
266, rue de Villers
60123 Bonneuil en Valois

___

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


Re: [clamav-users] clamsubmit error

2019-08-13 Thread Jerry via clamav-users
On Mon, 12 Aug 2019 16:43:23 +0200, Arnaud Jacques stated:
>Same error message with 0.102.0-beta and 0.101.2

* truncated *

FreeBSD 12.0-RELEASE-p9
clamd -V
ClamAV 0.101.2/25540/Tue Aug 13 04:16:47 2019

invalid cfduid and/or session id values provided by clamav.net/presigned. 
Unable to continue submission.

-- 
Jerry



___

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


Re: [clamav-users] Update Frequency (15 min or 10 mins)

2019-08-13 Thread Reio Remma via clamav-users

On 13/08/2019 15:17, Manna, Mohammed via clamav-users wrote:


Hello,

From the docs – it says that the most frequent update of clam AV 
definitions is 4 times an hour (e.g. every 15 mins).


However, we were investigating the clamAV logs, and it shows the 
following:


Tue Aug 13 12:11:01 2019 -> Self checking every 600 seconds.

Our confusion is here – is it actually the definition update 
frequency, or something else.


Apologies for any incorrect assumptions.

Regards,
MAnna



That's the interval at which ClamAV checks its local database files.

Good luck,
Reio

___

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


[clamav-users] Update Frequency (15 min or 10 mins)

2019-08-13 Thread Manna, Mohammed via clamav-users
Hello,

>From the docs - it says that the most frequent update of clam AV definitions 
>is 4 times an hour (e.g. every 15 mins).

However, we were investigating the clamAV logs, and it shows the following:

Tue Aug 13 12:11:01 2019 -> Self checking every 600 seconds.

Our confusion is here - is it actually the definition update frequency, or 
something else.

Apologies for any incorrect assumptions.

Regards,
MAnna


___

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


Re: [clamav-users] Freshclam slows down boot on MX Linux (Debian)

2019-08-13 Thread Paul B. via clamav-users
First boot-up today, and the problem persists without any change, so
apparently network unavailability is not a factor in my case (the
connection is always made very early after the desktop appears).
Somehow a delay on boot would have to be programmed into the Freshclam
scheduler in order to solve this problem.

Paul


> Thanks to everyone who responded. For some reason I cannot Reply to
mails from this list. I have to Compose from scratch each time, which
probably breaks threading here. Here is my original response,
resending now:

> Thanks very much, Micah! I have ethernet here and it does connect
quickly, but this still might be happening. I'm made the emendation
and will let you know if it solves the problem or not. It will take a
few days to be sure. I still think that a delay mechanism is very
desirable, perhaps even as the default.

BW,
Paul

On Mon, Aug 12, 2019 at 9:24 AM Micah Snyder (micasnyd)
 wrote:
>>
>> This may be related, another user had noted that freshclam was starting 
>> before it had network access, and had us add a network-online dependency to 
>> the service file.  This change will be present in the 0.102 release, but you 
>> can always add it manually to your clamav-freshclam.service file:
>> https://bugzilla.clamav.net/show_bug.cgi?id=12104
>>
>> -Micah

___

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


Re: [clamav-users] Packaging ClamAV

2019-08-13 Thread Tuomo Soini
On Mon, 12 Aug 2019 15:37:47 +
Graeme Fowler via clamav-users  wrote:

> On 12/08/2019, 16:21, "Nick Howitt"  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 
Foobar Linux services
+358 40 5240030
Foobar Oy 

___

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