[EMAIL PROTECTED] wrote:

> Please post results of:
>cat /etc/init.d/freshclam

# Source function library
. /etc/init.d/functions
# Get network config
. /etc/sysconfig/network
test -f /etc/freshclam.conf || exit 0
RETVAL=0
start() {
 echo -n $"Starting freshclam: "
 # Start me up!
 daemon /usr/bin/freshclam -d -p /var/run/clamav/freshclam.pid
 RETVAL=$?
 echo
 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/freshclam
 return $RETVAL
}

stop() {
 echo -n $"Stopping freshclam: "
 killproc freshclam
 RETVAL=$?
 echo
 [ $RETVAL -eq 0 ] && rm -f /var/run/clamav/freshclam.pid /var/lock/subsys/freshclam
 return $RETVAL
} 

restart() {
  stop
  start
} 

reload() {
 echo -n $"Reloading DB: "
 killproc freshclam -ALRM
 RETVAL=$?
 echo
 return $RETVAL
}

case "$1" in
  start)
   start
 ;;
  stop)
   stop
 ;;
  status)
 status freshclam
 ;;
  restart)
   restart
 ;;
  condrestart)
   [ -f /var/lock/subsys/freshclam ] && restart || :
 ;;
  reload)
 reload
 ;;
  *)
 echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
 exit 1
esac

exit $?

>cat /etc/cron.daily/freshclam

/bin/touch -a /var/lib/clamav/*.cvd
/usr/sbin/tmpwatch 72 /var/lib/clamav

>cat /etc/freshclam.conf

DatabaseDirectory /var/lib/clamav

 

UpdateLogFile /var/log/clamav/freshclam.log

 

PidFile /var/run/clamav/freshclam.pid

 

DatabaseOwner clamav

 

DNSDatabaseInfo current.cvd.clamav.net

 

DatabaseMirror database.clamav.net

 

# Number of database checks per day.

# Default: 12 (every two hours)

Checks 24

 

NotifyClamd /etc/clamd.conf



> ps -aux | grep clam



Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
clamav    1938  0.0  0.5  8808 5700 ?        S    22:15   0:00 /usr/sbin/clamd
clamav    1948  0.0  0.1  4824 1236 ?        S    22:15   0:00 /usr/bin/freshclam -d 
-p /var/run/clamav/freshclam.pid
root      2711  0.0  0.0  4628  752 pts/3    S    22:40   0:00 man freshclam
root      2739  0.0  0.0  5216  868 pts/3    S    22:40   0:00 sh -c /usr/bin/bzip2 -c 
-d /var/cache/man/cat1/freshclam.1.bz2 | /usr/bin/less -is
root      2832  0.0  0.0  4376  720 pts/2    S    23:03   0:00 grep clam


>Hopefully you're not running a freshclam -d from /etc/cron.daily or you'd be running 
>more and more freshclam >processes as days go by.



.. in the /etc/cron.daily there isn't freshclam -d then it's present in 
/etc/init.d/freshclam

>You set the update frequency in /etc/freshclam.conf as Checks - the update frequency 
>is )
>"(Checks) times per day" for freshclam -d.  If you run freshclam via cron.hourly, 
>leave off the -d.



.. my value is 'Checks 24', but why the update is to excute every hour ?

thanks.



Salvatore.



---
[This E-mail scanned for viruses by Declude Virus]

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to