Hi, It looks like return code 1 means the virus database is up to date (#define FC_UPTODATE 1 from freshclamcodes.h). Please advise if this is incorrect or inconsistent. The man page needs to be updated.
Thanks, Steve On Thu, Feb 16, 2017 at 4:27 AM, Andreas Schulze <andreas.schu...@datev.de> wrote: > 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 > _______________________________________________ > clamav-users mailing list > clamav-users@lists.clamav.net > http://lists.clamav.net/cgi-bin/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@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml