On Tue, 10 Apr 2007 19:04:01 +0200 Tomasz Kojm <[EMAIL PROTECTED]> wrote:
> On Tue, 10 Apr 2007 17:57:15 +0100 > Brian Morrison <[EMAIL PROTECTED]> wrote: > > > On Tue, 10 Apr 2007 17:58:35 +0200 > > Tomasz Kojm <[EMAIL PROTECTED]> wrote: > > > > > On Mon, 9 Apr 2007 21:31:56 +0100 > > > Brian Morrison <[EMAIL PROTECTED]> wrote: > > > > > > > > Are you sure freshclam and clamd are configured the same database > > > > > directory? > > > > > > > > Yes, absolutely certain, you can see the freshclam -> clamd notification > > > > message, and the subsequent clamd database reload message, in my > > > > original post. > > > > > > Please post the output from clamconf anyway. > > > > > > > [EMAIL PROTECTED] bdm]$ /usr/bin/clamconf > > /etc/clamd.conf: clamd directives > [...] > > /etc/freshclam.conf: freshclam directives > [...] > > OK, please let me know if there is anything obvious. > > So by default it's reading confs from /etc and not /host/ickx/root/etc. Yes, sorry, that's just the NFS path as seen from my other machine. > Do you run clamd/freshclam with --config-file? > No, they are started from the init scripts that form part of the rpms I build. These are shown below: #!/bin/sh # # freshclam Start/Stop the freshclam. # # chkconfig: - 62 38 # description: freshclam is an update daemon for Clam AV database. # # processname: freshclam # config: /etc/freshclam.conf # pidfile: /var/run/clamav/freshclam.pid # # (c) 2004/05/17 [EMAIL PROTECTED] under GNU GPL 2.0+ # # 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 $? #!/bin/sh # # clamd Script to start/stop clamd. # # chkconfig: - 61 39 # description: clamd is an antivirus daemon. # # processname: clamd # config: /etc/clamd.conf # pidfile: /var/run/clamav/clamd.pid # Source function library . /etc/rc.d/init.d/functions # Get network config . /etc/sysconfig/network test -f /etc/clamd.conf || exit 0 RETVAL=0 start() { echo -n $"Starting Clam AV daemon: " daemon /usr/sbin/clamd RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd return $RETVAL } stop() { echo -n $"Stopping Clam AV daemon: " killproc clamd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/run/clamav/clamd.pid /var/lock/subsys/clamd return $RETVAL } restart() { stop start } reload() { echo -n $"Reloading DB: " killproc clamd -USR2 RETVAL=$? echo return $RETVAL } case "$1" in start) start ;; stop) stop ;; status) status clamd ;; restart) restart ;; condrestart) [ -f /var/lock/subsys/clamd ] && restart || : ;; reload) reload ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" exit 1 esac exit $? -- Brian Morrison bdm at fenrir dot org dot uk "Arguing with an engineer is like wrestling with a pig in the mud; after a while you realize you are muddy and the pig is enjoying it." GnuPG key ID DE32E5C5 - http://wwwkeys.uk.pgp.net/pgpnet/wwwkeys.html _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html