[clamav-users] freshclam exit codes

Andreas Schulze andreas.schulze at datev.de
Thu Feb 16 09:27:14 UTC 2017


Hello,

consider this setup. the goal is to run a separate clamav instance using *only* our database files
to speedup clamav reload times.

# cat custom-freshclam.conf 
	DatabaseCustomURL http://our.clamav.mirror/local_foo.ndb
	DatabaseDirectory /path/to/custom_clamdir/
	# required but not relevant here
	DatabaseMirror our.clamav.mirror

# freshclam --config-file=/path/to/custom-freshclam.conf --update-db=custom
...

# echo $?
1

unfortunately the exit code is *always* 1 ("man freshclam" doesn't describe 1 as exit code at all ...)
normaly freshclam return 0 if some files where updated or if all files are uptodate.
Am I using freshclam wrongly or should I consider this as a bug ?
( version 0.99.2 )

-- 
A. Schulze
DATEV eG



More information about the clamav-users mailing list