On Thu, 24 Mar 2005 at 12:18:24 -0500, Scott Plumee wrote:
> Steffen Winther Soerensen wrote:
> >
> >Sounds very much like your network connection and resolve lib isn't in
> >place at this time, try to delay running freshclam until network
> >connection is in place.
> 
> Not sure if this is the best way to do it, but I added a 30 second delay 
> to the /usr/local/etc/rc.d/clamav-freshclam.sh script.  However, still 
> did not solve it - same error on a reboot.  It's a virtual server, and 
> the entire reboot process only takes about 15 seconds before I can get 
> back in via SSH, so that doesn't seem to be it.
> 
> Is there a better way to do this I should try?

Maybe insert 'ping -c 5 database.clamav.net > path/somefile' in the
script just before invoking freshclam and see what you get as the
output.

Note that I don't know whether all database mirrors answer to ping
requests, so you can receive no reply anyway. That's why you can replace
'database.clamav.net' with some hostname which you know is pingable.
Use a hostname, not an IP address, so that you can notice a DNS-related
problem during startup in case it's the reason.

-- 
 Tomasz Papszun    SysAdm @ TP S.A. Lodz, Poland    | And it's only
 tomek at lodz.tpsa.pl http://www.lodz.tpsa.pl/iso/ | ones and zeros.
 tomek at clamav.net   http://www.ClamAV.net/   A GPL virus scanner
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to