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!

Prevent setting cron when there's too many user using the same setting?

Discussion in 'General Discussion' started by kabatak, Mar 22, 2013.

  1. kabatak

    kabatak Well-Known Member

    Joined:
    Jun 10, 2009
    Messages:
    116
    Likes Received:
    4
    Trophy Points:
    68
    Apparently, I've a lot of users using exactly the same cron setting and this is causing high server load. Can we prevent users from using the same cron setting when there's too many users already using it?

    For example, if there's x numbers of users that use the following cron schedule: 0 1 * * *, is it possible to prevent future users in using the same cron setting?
     
  2. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    I think the only way is to deny the user from creating cron jobs. You may use the file /etc/cron.deny . Or the user specific crons are available at /var/spool/cron/username

    Cheers!!!
     
    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