30 January 2016

Disable Partial / All Cron in WHM/Cpanel Server (Except Root)



Cronjobs is somewhat a massive activity and could affect the overall server performance. And so, as administrator, we need to disable some user's cronjobs to relieve the server load. There is a tricky but simple way to disable partial cronjob in WHM/Cpanel based server. Here are the very simple steps :

1. Create a directory /var/spool/cron.disabled
# mkdir /var/spool/cron.disabled
2. Move the cronjobs you want to be disabled
# mv /var/spool/cron/username /var/spool/cron.disabled
3. Restart http/apache server to take effect
# /etc/init.d/httpd restart

No comments: