Link to home
Start Free TrialLog in
Avatar of hrolsons
hrolsonsFlag for United States of America

asked on

How to stop ClamAV

I've been reading about some problems with ClamAV.  How do I stop it from running on my server?
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of hrolsons

ASKER

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#
Sorry its

ps aux | grep clamd



also try

/etc/init.d/clamd stop

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?
what linux os u using ???
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



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#
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??
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?
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


you can find out

ps aux | grep sendmail

ps aux | grep postfix

ps aux | grep exim

see which one give you result
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#
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
or

/usr/local/etc/rc.d/postfix stop
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.
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)
Sorry i was not helpful at this time

You were very helpful, just didn't have all the answers.
ASKER CERTIFIED SOLUTION
Avatar of MrVandemar
MrVandemar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial