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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
fosiul01Commented:
Sorry its

ps aux | grep clamd



also try

/etc/init.d/clamd stop

0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.