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.

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:
    80
    Likes Received:
    1
    Trophy Points:
    8
    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:
    18
    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!!!
     
Loading...

Share This Page