Freshclam Error

Hi

My clamav & freshclam is configured as follows

-

root@ndabbmr1-a-fixed # ps -eaf | grep clamd

root 76051 0 18:10:13 ?0:00 /opt/clamav/sbin/clamd

root 7640 7574 0 18:14:07 pts/10:00 grep clamd

root@ndabbmr1-a-fixed # ps -eaf | grep freshclam

clamav 76031 0 18:10:10 ?0:00 /opt/clamav/bin/freshclam --daemon --pid=/var/run/freshclam.pid

root 7642 7574 0 18:14:17 pts/10:00 grep freshclam

- -

when i tried to stop clamav the freshclam is giving following error

-

root@ndabbmr1-a-fixed # /etc/init.d/clamd stop

Stopping clamd in /opt/clamav/sbin :

cat: cannot open /var/run/freshclam.pid

/usr/bin/kill[8]: kill: bad argument count

- --

and i'm not finding pid file for freshclam in /var/run directory as shown below..

-

root # cd /var/run

root # ls

clamd.pidname_service_doorrpc_doorsshd.pidsyslog.pid tp.pids-anonusers pcmcia smc898 sysevent_channels ftp.pids-realusers picld_door smedia_svc syslog_door

- --

my ques...

1. Freshclam is not creating pid file so i've tried to run it with following option

--pid=/var/run/freshclam.pid

is it correct ?

2. How i have to solve this problem ?

3. Why it is giving the following error ?

cat: cannot open /var/run/freshclam.pid

Thanks in Advance

[1383 byte] By [bsnl-nib] at [2007-11-26 10:28:42]
# 1
Well, as I suggested on an earlier post, this is really not the best place for ClamAV help.Please try the ClamAV forum. That's how I learned how to get it working.What the errors look like are file permission errors.
jay_plesset at 2007-7-7 2:33:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

Hi bsnl,

in /opt/ClamAV/etc/freshclam.conf

# This option allows you to save the process identifier of the daemon

# Default: disabled

#PidFile /var/run/freshclam.pid

I choose disabled. I don't know what is in your /etc/init.d/clamd file.

but I believe you can do

pkill freshclam

to stop it, don't have to know pid. Of course, you got to be sure, there is not other command name contained "freshclam"!!!!

If you insist to use pid file, I don't do in command line, but change /opt/ClamAV/etc/freshclam.conf file,

PidFile /somewhere/clamav_can_write/freshclam.pid

because you run freshclam as clamav, not root.

my system(yours should be same)

/var/run root:sys755, so user clamav can not write pid file there.

I guess freshclam won't do user switch, i.e start as root,(created pid) then change non-root user. just guess.

Jerry_Goconnect at 2007-7-7 2:33:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
Please, let's keep this forum focused on Messaging. ClamAV is an excellent product, but we're really not expert in setting it up, and there is a far better place for it, and that's the ClamAV forum.
jay_plesset at 2007-7-7 2:33:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4
Ok JayAs per your request i've stopped discussing about clamav.
bsnlnib at 2007-7-7 2:33:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
Thanks Jerry
bsnlnib at 2007-7-7 2:33:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...