dcpumon kills my process
Hello,
I was investigating the cause of someone killing my process (custom data monitoring daemon) once a day. At approximately 22:15 my process would die every day.
I traced the cause to this line in '/var/spool/cron/root' file:
11 22 * * * /usr/local/cpanel/scripts/upcp --cron
upcp --cron runs and in turn causes this to happen:
- Processing command `/usr/local/cpanel/bin/dcpumon --killproc`
dcpumon in turns kills my process.
Is there a way to prevent dcpumon from killing specific process?
If not - could someone post an instruction to disable dcpumon without it being re-enabled after every WHM/Cpanel update?
Thanks.
Gleb
-
Hello, It's not possible to disable that application directly. Are you able to modify your custom application to use a different process name? Also, feel free to open a feature request for the ability to disable dcpumon via: Submit A Feature Request Thank you. 0 -
I had to manually comment out dcpumon in '/scripts/maintenance'. 0 -
Hello, That file is overwritten during cPanel updates, so you may want to setup a script that makes that change and then configure it to run as part of a pre upcp hook: Guide to Standardized Hooks - System Functions - Software Development Kit - cPanel Documentation Thank you. 0 -
Great, appreciate your reply. Gleb 0
Please sign in to leave a comment.
Comments
4 comments