Hi, when we run supervise for clamd we get this error
 
Jan 25 17:24:34 mail1a clamd: supervise: fatal: unable to chdir to log: file does not exist
 
Our run file contains this:
#!/bin/sh
exec 2>&1
CLAMD_FILE=/var/run/clamav/clamd.sock
SCAN_FILE=$0
 
# Check for a leftover socket.
if [ -e $CLAMD_FILE ]
then
  echo "run: WARNING: file $CLAMD_FILE exists"
  if clamdscan $SCAN_FILE
  then
    echo "run: FATAL: Clamd is already running. Trying to start anyway..."
  else
    echo "run: INFO: Clamd is not running. Deleting $CLAMD_FILE"
    rm -f $CLAMD_FILE
  fi
fi
 
# Run the scanner daemon.
exec /usr/sbin/clamd
don't have aclue where the log comes into this...
 
thanks,
-- 
Shaun Bügler
  Hetzner Africa
  Tel: +27 21 970 2000
  Fax: +27 21 970 2001
  Email Disclaimer: http://www.hetzner.co.za/index.php?id=245
 
[ * Awarded Top 50 ICT Companies status in SA - 2003/4]
[ * Awarded Top 300 National Companies status - 2004/5/6]
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to