How to stop ClamAV

I've been reading about some problems with ClamAV.  How do I stop it from running on my server?
hrolsonsAsked:
Who is Participating?
 
MrVandemarCommented:
if you installed from the ports system then do:

/usr/local/etc/rc.d/clamav-clamd stop
/usr/local/etc/rc.d/clamav-freshclam stop

To keep them from restarting when rebooting edit the /etc/rc.conf and change the appropriate lines from Yes to NO


0
 
fosiul01Commented:
i guess its

service clamd stop

or type

ps aux | clamav
it should show you the path for the daemon or process number

just kill that

or stop that proces
0
 
hrolsonsAuthor Commented:
xxx-xxx-xxx-xxx# service clamd stop
service: Command not found.
xxx-xxx-xxx-xxx# ps aux | clamav
clamav: Command not found.
xxx-xxx-xxx-xxx# ps aux | clamd
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by another process.
xxx-xxx-xxx-xxx#
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
fosiul01Commented:
Sorry its

ps aux | grep clamd



also try

/etc/init.d/clamd stop

0
 
hrolsonsAuthor Commented:
xxx-xxx-xxx-xxx# ps aux | grep clamd
vscan     572  0.0  8.5 90668 87712  ??  Is   14Apr10   3:00.08 /usr/local/sbin/clamd
xxx-xxx-xxx-xxx# /etc/init.d/clamd stop
/etc/init.d/clamd: Command not found.
xxx-xxx-xxx-xxx# cd /etc/init.d
/etc/init.d: No such file or directory.
xxx-xxx-xxx-xxx# locate init.d
/usr/ports/sysutils/heartbeat/files/patch-ldirectord-init.d-ldirectord
xxx-xxx-xxx-xxx#

Also, how do I stop it from turning on when the machine reboots?
0
 
fosiul01Commented:
what linux os u using ???
0
 
fosiul01Commented:
is this freebsd ??

i am just doing soem wild guess!! ( i guess this is not redhat or debain)

clamd stop

or
/usr/local/sbin/clamd stop



0
 
hrolsonsAuthor Commented:
Yes, it is FreeBSD.

xxx-xxx-xxx-xxx# clamd stop
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by another process.
xxx-xxx-xxx-xxx#
0
 
fosiul01Commented:
whats your mail server ???

stop that mail server then stop this clam av by

clamd stop


do you have anything else installed related to clamav ?? like spamassign ??

sorry i never use freebsd so i cant be too much specifiq

but stop the mail server .. then clamav

whats your mail server??
0
 
hrolsonsAuthor Commented:
Sorry, I just don't know much about servers.  Our mail server is Dovecot.  How would I stop it, and how would I start it back up after clamav is stopped?
0
 
fosiul01Commented:
Our mail server is Dovecot :

dovecot is not mail server, its pop3

mail server would be example, sendmail , postfix or exim


its saying

ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by  another process.

when i used clamav before, i had to stop mail server first before stop this clamav


0
 
fosiul01Commented:
you can find out

ps aux | grep sendmail

ps aux | grep postfix

ps aux | grep exim

see which one give you result
0
 
hrolsonsAuthor Commented:
Thank you so much for your help.  Looks like postfix:

xxx-xxx-xxx-xxx# ps aux | grep sendmail
xxx-xxx-xxx-xxx# ps aux | grep postfix
root      706  0.0  0.2  6332  2044  ??  Ss   14Apr10   0:59.56 /usr/local/libexec/postfix/master
postfix   713  0.0  0.2  6332  2184  ??  I    14Apr10   0:28.33 qmgr -l -t fifo -u
postfix   772  0.0  0.2  6332  2312  ??  I    14Apr10   0:04.60 tlsmgr -l -t unix -u
postfix 83286  0.0  0.3  6332  2692  ??  I    11:37AM   0:00.03 pickup -l -t fifo -u
postfix 83299  0.0  0.3  6332  2672  ??  I    11:39AM   0:00.03 anvil -l -t unix -u
xxx-xxx-xxx-xxx# ps aux | grep exim
xxx-xxx-xxx-xxx#
0
 
fosiul01Commented:
man i am in deep problem..


you might have to try to delete this question and have to create another question as my knowledge of freebsd and postfix is less

how ever

try to stop postfix by

postfix stop
0
 
fosiul01Commented:
or

/usr/local/etc/rc.d/postfix stop
0
 
hrolsonsAuthor Commented:
I was able to stop postfix, but clamd still says:

LibClamAV Warning: ***********************************************************
ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by another process.
0
 
fosiul01Commented:
hi
I am trying to find in google about that problem.. i will come back , but if you want , you can  ask another news question ( by deleting this question)
0
 
fosiul01Commented:
Sorry i was not helpful at this time

0
 
hrolsonsAuthor Commented:
You were very helpful, just didn't have all the answers.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.