Line 13: |
Line 13: |
| 2013-03-02 22:58:52.561968500 Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons. | | 2013-03-02 22:58:52.561968500 Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons. |
| | | |
| + | == Method 0 == |
| + | |
| + | see http://bugs.contribs.org/show_bug.cgi?id=7406#c32 for the source of this script, thanks chris. |
| + | nano /usr/bin/refreshclam |
| + | past this content. |
| + | #!/bin/bash |
| + | echo ---------------------- |
| + | echo Stop qpsmtpd/sqpsmtpd: |
| + | echo ---------------------- |
| + | /usr/local/bin/svc -d /service/qpsmtpd/ |
| + | /usr/local/bin/svc -d /service/sqpsmtpd/ |
| + | echo --------------------- |
| + | echo Stop freshclam/clamd: |
| + | echo --------------------- |
| + | /usr/local/bin/svc -d /service/freshclam/ |
| + | /usr/local/bin/svc -d /service/clamd/ |
| + | echo ------------------------ |
| + | echo Delete all clamav files: |
| + | echo ------------------------ |
| + | rm -f /var/clamav/* |
| + | echo ---------------------- |
| + | echo Update clamAV database |
| + | echo ---------------------- |
| + | echo |
| + | freshclam -v |
| + | echo ----------------------- |
| + | echo Restart freshclam/clamd |
| + | echo ----------------------- |
| + | /usr/local/bin/svc -u /service/freshclam/ |
| + | /usr/local/bin/svc -u /service/clamd/ |
| + | echo ------------------------ |
| + | echo Restart qpsmtpd/sqpsmtpd |
| + | echo ------------------------ |
| + | /usr/local/bin/svc -u /service/qpsmtpd/ |
| + | /usr/local/bin/svc -u /service/sqpsmtpd/ |
| + | echo -------------- |
| + | echo Check services |
| + | echo -------------- |
| + | echo |
| + | service clamd status |
| + | service freshclam status |
| + | service qpsmtpd status |
| + | service sqpsmtpd status |
| + | echo |
| + | echo ---------- |
| + | echo check logs |
| + | echo ---------- |
| + | echo |
| + | tail -25 /var/log/freshclam/current | tai64nlocal |
| + | echo |
| + | echo ----------------- |
| + | echo check directories |
| + | echo ----------------- |
| + | echo |
| + | ls -lah /var/clamav/ |
| + | echo |
| + | echo ----------------------------------------------------------------------------- |
| + | echo To check freshclam, start a new instance of the supervised freshclam service: |
| + | echo ----------------------------------------------------------------------------- |
| + | echo |
| + | sv t /service/freshclam |
| + | tail -5 /var/log/freshclam/current | tai64nlocal |
| + | |
| + | save by ctrl+x |
| + | chmod +x refreshclam |
| + | to launch the script |
| + | refreshclam |
| == Method 1 == | | == Method 1 == |
| {{Tip box|This is a workaround to create a new database solving the error condition of clamav. Use a root terminal to perform these commands.}} | | {{Tip box|This is a workaround to create a new database solving the error condition of clamav. Use a root terminal to perform these commands.}} |