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!

Tweaking cPanel Servers for maintenance cronjob times

Discussion in 'General Discussion' started by sahostking, Mar 26, 2018.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    328
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi guys

    We use cloudlinux cpanel servers for shared hosting.

    Now I was looking at crons today and thought I'd clear out old ones and start tweaking times and workout and manage the times they run better.

    Now a question.

    I have tons of tasks in crontab -e which I assume is completely seperated to anacron times.

    anacron times as per below:

    /etc/anacrontab


    # /etc/anacrontab: configuration file for anacron

    # See anacron(8) and anacrontab(5) for details.

    SHELL=/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    # the maximal random delay added to the base delay of the jobs
    RANDOM_DELAY=45
    # the jobs will be started during the following hours only
    START_HOURS_RANGE=3-22

    #period in days delay in minutes job-identifier command
    1 5 cron.daily nice run-parts /etc/cron.daily
    7 25 cron.weekly nice run-parts /etc/cron.weekly
    monthly 45 cron.monthly nice run-parts /etc/cron.monthly


    I I set the START_HOURS_RANGE to say to between non-office hours like 18-05 do you guys forsee any problems with any important cronjobs?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    As I understand, adjusting that file shouldn't alter the root cron jobs that you see when running the "crontab -l" command because they are not stored in the "/etc/cron.daily", "/etc/cron.weekly", or "/etc/cron.monthly" directories.

    Thank you.
     
    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