Philipp Ringli wrote:


* Philipp Ringli <[EMAIL PROTECTED]> [20031205 11:45]: wrote:

hey all,

i am still having troubles with clamav on MDK 9.2.

this is what i get in the mail, when the daily cron job runs:
subject: Cron <[EMAIL PROTECTED]> nice -n 19 run-parts /etc/cron.daily
body:
connect(): No such file or directory
ERROR: Can't connect to clamd.


What do you get when you do

ps ax | grep clamd | grep -v grep
Is clamd running?


i get nothing. clamd isn't running.
i think the perl script "checkvirus.pl" (filter) which xmail is using to check for viruses uses clamscan and not clamd.


Secondly, what does this cron job do? Freshclam???


yes. it's freshclam.

this script is in /etc/cron.daily :
-------------------------------------------------------------------
#!/bin/sh

# A simple update script for the clamav virus database. This could as well
# be replaced by a SysV script.

# fix log file if needed
LOG_FILE="/var/log/clamav/freshclam.log"
if [ ! -f ${LOG_FILE} ]; then
    touch $LOG_FILE
    chmod 644 $LOG_FILE
    chown clamav.clamav $LOG_FILE
fi

/usr/bin/freshclam \
    --quiet \
    --datadir=/var/lib/clamav \
    --log=$LOG_FILE \
    --log-verbose \
    --daemon-notify=/etc/clamav.conf
the option --daemon-notify tries to connect to clamd and issue a "reload" command. That's the source of the error message.

Thomas




------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to