In the past I used to be able to pause Cpanellogd using the killall command. A few weeks ago this stopped working. Now killall will no longer recognize the cpanellogd processes. Can you recommend any workarounds?
Here is the problem:
root@server2 [~]# ps aux |grep cpanellogd
root 14236 0.0 0.0 26244 1260 ? SN Mar23 0:00 cpanellogd - updating bandwidth
root 19265 0.0 0.0 61192 772 pts/1 S+ 13:28 0:00 grep cpanellogd
root 20606 0.0 0.0 109888 1220 ? TN Mar23 0:00 cpanellogd - seperating xferlog
root 23858 11.2 2.0 132000 42956 ? DN 13:03 2:49 cpanellogd - updating bandwidth for theacker
root@server2 [~]# killall -STOP cpanellogd
cpanellogd: no process killed
In the past this would pause cpanellogd. It did so for about 3 years until all of a sudden it suddenly stopped working a few weeks ago. I need this urgently since I have a program running on my servers that will pause cpanellogd when the server gets overloaded.
I know Cpanel is supposed to pause cpanellogd itself when the load gets too high but it doesn't. I have multiple servers and Cpanel has never managed to pause cpanellogd when the load got high. Maybe it doesn't check the load often enough. If it checks the load every 10 minutes or so it doesn't help much because after 10 minutes the server has already gone down offline due to the load going beyond 100 or so. So I need the killall command to be able to pause cpanellogd. My program checks the load every 15 seconds and uses killall to pause cpanellogd but it's not working anymore. Any ideas?
Here is the problem:
root@server2 [~]# ps aux |grep cpanellogd
root 14236 0.0 0.0 26244 1260 ? SN Mar23 0:00 cpanellogd - updating bandwidth
root 19265 0.0 0.0 61192 772 pts/1 S+ 13:28 0:00 grep cpanellogd
root 20606 0.0 0.0 109888 1220 ? TN Mar23 0:00 cpanellogd - seperating xferlog
root 23858 11.2 2.0 132000 42956 ? DN 13:03 2:49 cpanellogd - updating bandwidth for theacker
root@server2 [~]# killall -STOP cpanellogd
cpanellogd: no process killed
In the past this would pause cpanellogd. It did so for about 3 years until all of a sudden it suddenly stopped working a few weeks ago. I need this urgently since I have a program running on my servers that will pause cpanellogd when the server gets overloaded.
I know Cpanel is supposed to pause cpanellogd itself when the load gets too high but it doesn't. I have multiple servers and Cpanel has never managed to pause cpanellogd when the load got high. Maybe it doesn't check the load often enough. If it checks the load every 10 minutes or so it doesn't help much because after 10 minutes the server has already gone down offline due to the load going beyond 100 or so. So I need the killall command to be able to pause cpanellogd. My program checks the load every 15 seconds and uses killall to pause cpanellogd but it's not working anymore. Any ideas?