Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Need to set max cron job limit

Discussion in 'General Discussion' started by thewebhosting, May 15, 2008.

  1. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    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,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice