Disabling cppop automagical restart

IC3D

Registered
Feb 16, 2010
4
0
51
I am trying to stop and disable POP services on one of my WHM boxes all together. I have an internal app communicating via IMAP and SMTP but POP services for this box is unnecessary and will never be used, so I thought I would disable it.

In - Main >> Service Configuration >> Mailserver Configuration
I unset POP3D POP3DSSL

Then I ran:

/etc/init.d/cpanel stop
touch /etc/cppopdisable
/etc/init.d/cpanel start

Now for the past 24hrs every 5mins I get an email:

pop failed @ Tue Mar 1 10:42:42 2011. A restart was attempted automagically.
Service Check Method: [tcp connect]
Failure Reason: Unable to connect to port 110

WHM 11.28.83
CENTOS 5.5 x86_64

How do I disable this from trying to restart every 5 minutes?
 

IC3D

Registered
Feb 16, 2010
4
0
51
So I found some Info regarding chkservd script configuration; which is really dated:
http://forums.cpanel.net/f5/cron-jobs-restart-services-22085.html

so - find * | grep chkservd

lead me here: /etc/chkserv.d/chkserv.d.conf

which listed all the services:
cpsrvd:1
exim:1
...
...
...
pop:1

.... I changed pop from 1 to 0 ... (disable)

waiting another go around (5 min) to see if this finally stops


Assuming this is right this time, we shall see
 
Last edited:

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
Houston, TX
cPanel Access Level
Root Administrator
cppop is deprecated in recent versions of cPanel and should be disabled anyway. Editing the /etc/chkserv.d/chkdservd.conf file is the correct approach. Also, remove the cppop file from /etc/chkserv.d. Restart tailwatchd (chkservd is a driver that is part of tailwatchd) and watch /var/log/chkservd.log to make sure the service is no longer being detected as down:

Code:
# mv /etc/chkserv.d/cppop /root
# /scripts/restartsrv_tailwatchd
# tail -f /var/log/chkservd.log
Use Ctrl+C to stop the tail -f command.
 

IC3D

Registered
Feb 16, 2010
4
0
51
cppop is deprecated in recent versions of cPanel and should be disabled anyway. Editing the /etc/chkserv.d/chkdservd.conf file is the correct approach. Also, remove the cppop file from /etc/chkserv.d. Restart tailwatchd (chkservd is a driver that is part of tailwatchd) and watch /var/log/chkservd.log to make sure the service is no longer being detected as down:

Code:
# mv /etc/chkserv.d/cppop /root
# /scripts/restartsrv_tailwatchd
# tail -f /var/log/chkservd.log
Use Ctrl+C to stop the tail -f command.
Much appreciation on the fast response and the detail...

I will have to go back through and cleanly do this per your notes.... for now chkserv process isn't checking, restarting or throwing errors on cppop anymore!

Thanks
 

stainer1

Registered
May 29, 2011
3
0
51
Hi,

Would massively appreciate help with the same problem. Disabled email due to using GoogleApps for email, but am getting the POP automagical email every 5 mins - argh!

Bit of a server noob I'm afraid.

Tried SSH:

Code:
# mv /etc/chkserv.d/cppop /root
# /scripts/restartsrv_tailwatchd
# tail -f /var/log/chkservd.log
But the first line gives this message:

mv: cannot stat `/etc/chkserv.d/cppop': No such file or directory
Thanks!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
What scripts do you have in /etc/chkserv.d location? If you have one called pop instead, move that one:

Code:
mv /etc/chkserv.d/pop /root