Disabled Services Still Running?

linux4me

Member
Jul 14, 2007
20
1
53
I'm running WHM 11.2.0 cPanel 11.11.0-S16999 on a Virtuozzo VPS that has only 256 MB of RAM with bursting to 1024.

I am trying to disable the services that I don't use to maximize the resources available.

In WHM, I go Main >> Service Configuration >> Service Manager and uncheck both "enabled" and "monitor" for the following services:
  • entropychat
  • imap
  • interchange
  • melange
  • postgresql
  • spamd (also unchecked SpamAssassin in Tweak Settings)
and saved the changes. Since doing so, I have restarted Apache and MySQL as well as the VPS several times due to crashes.

I took a look in Main >> System Health >> Show Current Running Processes just now, and I see the following lines:
18377 (postmaster) /usr/bin/postgres
18379 (postmaster) /usr/bin/postgres
18380 (postmaster) /usr/bin/postgres
19457 (courierlogger) /usr/sbin/courierlogger /
19458 (couriertcpd) /usr/lib/courier-imap/libexec/couriertcpd
19466 (courierlogger) /usr/sbin/courierlogger /
19467 (couriertcpd) /usr/lib/courier-imap/libexec/couriertcpd
19474 (courierlogger) /usr/sbin/courierlogger /
19475 (couriertcpd) /usr/lib/courier-imap/libexec/couriertcpd
19482 (courierlogger) /usr/sbin/courierlogger /
19484 (couriertcpd) /usr/lib/courier-imap/libexec/couriertcpd
which make it look to me like PostgreSQL and IMAP are still running.

I also noticed that the icons for PostgreSQL are still showing up in the user's cPanel.

I double-checked that they remained disabled in Service Manager, and they are. I looked in /etc/chkserv.d as recommended elsewhere on this board, and found that melange, imap, postgresql, entropychat, interchange and spamd are still listed.

My questions:
  1. Is there something else I need to do from within WHM to disable these services and prevent them from restarting when the server restarts?
  2. If it isn't possible to disable these services from within WHM, what is the best method for doing so (in newbie terms)?

Thanks!
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,441
31
473
Go on, have a guess
That process is for the pop3 part of courier-imap by the looks of it.

WRT postgresql you probably still have it enabled within init:

service postgresql stop
chkconfig postgresql off

(it might be named postgres in init and not postgresql).
 

linux4me

Member
Jul 14, 2007
20
1
53
Thanks for the reply.

You were correct that it was "postgresql" and not "postgres" in init.

I ran the two commands you provided and that stopped postgresql. It's no longer appearing in the list of running processes.

The three icons for PostgreSQL still appear in cPanel. Is the appropriate way to get rid of them to uncheck them in the Feature List in WHM or is there something else I need to be doing?
 

DomineauX

Well-Known Member
PartnerNOC
Apr 12, 2003
429
11
168
Houston, TX
cPanel Access Level
Root Administrator
Hate to necro an old thread but this wasn't fully answered and this is a persistent problem.
Spamd, cpHulk, clamd (and likely other) services being turned off (and monitor off) in Service Manager does not persist properly through cPanel restarts and/or upcp.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please open up a bug report about this issue using either http://go.cpanel.net/bugs or the link at the top of the forum. I agree that services continuing to run after being disabled would be considered an issue, so please report the issue via our ticketing system for us to track it.