The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    38
    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,
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
Loading...

Share This Page