LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   CentOS + Qmailtoaster - how to disable clamd? (https://www.linuxquestions.org/questions/linux-server-73/centos-qmailtoaster-how-to-disable-clamd-835136/)

sokha 09-29-2010 04:46 AM

CentOS + Qmailtoaster - how to disable clamd?
 
Hi,

I run CentOS (under OpenVZ). I setup qmailtoaster a few weeks ago and it is working fine with 386MB ram VPS (including mysql, lighttpd). I noticed that clamd process consumes much memory. I think it is not really needed.

Is it possible to disable it without reinstall qmailtoaster?

Thanks,

amarand 10-12-2010 01:59 PM

Disable Clamd on Qmailtoaster
 
Quote:

Originally Posted by sokha (Post 4112357)
Hi,

I run CentOS (under OpenVZ). I setup qmailtoaster a few weeks ago and it is working fine with 386MB ram VPS (including mysql, lighttpd). I noticed that clamd process consumes much memory. I think it is not really needed.

Is it possible to disable it without reinstall qmailtoaster?

Thanks,

I found mention of this on the qmailtoaster list:

http://www.mail-archive.com/qmailtoa.../msg17919.html

Check for the directory:

/var/qmail/supervise/clamd

If it exists, move or remove the directory (I would back it up to be safe).

Shutdown qmailtoaster and make sure clamd stopped. If clamd doesn't stop, kill the process nicely with the default TERM signal (kill pid) and then check again. If it still doesn't stop, you may wish to kill the process with the INT or KILL signals (kill -INT pid or kill -KILL pid).

Myself, I prefer to just restart the server, to make sure clamd won't start-up automatically after a system reboot, but that's just me.

Also, keep in mind that clamd can ship and execute separately from qmailtoaster, so make sure your clamd is being started by qmailtoaster and not from somewhere else (init.d, chkconfig, rc.d scripts).

Hope this helps!

sokha 10-13-2010 01:32 AM

Thank you for your solution. I have done that by rename that directory and reboot the server. It reduces some of the memory consumption but I still see the process from: /usr/sbin/clamd is running

Code:

clamav  29854  4.8 25.2 116488 99172 ?        Sl  13:28  0:10 /usr/sbin/clamd

sokha 10-13-2010 01:44 AM

I just figured it out, I have to completely move the directory /var/qmail/supervise/clamd to somewhere else. By just renaming it to /var/qmail/supervise/clamd_something, the clamd will still be running.

Thanks again.


All times are GMT -5. The time now is 05:32 AM.