Tweaking cPanel Servers for maintenance cronjob times

sahostking

Well-Known Member
May 15, 2012
389
16
68
Cape Town, South Africa
cPanel Access Level
Root Administrator
Twitter
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
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.