Need to set max cron job limit

thewebhosting

Well-Known Member
May 9, 2008
1,201
1
68
Hello All,

I have a shared hosting server with near about 500 domains are hosted on it. I need to set Max Cron Run limit per user on the server. How can I set it?

For example, No one user can run cron more than thrice a day. How can I set this limit from the server?

Thanks,
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
Go on, have a guess
I'm not aware of any way to do that. You'd probably need to script something to scan the files in /var/spool/cron/* and if it's a user account with more than X job lines in it, add them to /etc/cron.deny however the cPanel UI may not use crontab to add entries in which case I doubt cron.deny will have any effect.