How to change Daily Maintenance Task execution time?


2017-04-08 05:58:24 UTC


2017-08-08 13:12:04 UTC


Was this article helpful?

Have more questions?

Submit a request

How to change Daily Maintenance Task execution time?

Applicable to:

  • Plesk for Windows
  • Plesk for Linux


Sometimes it is required to change the time of execution Daily Maintenance Task from the default value of ~03:00 AM to another one, for example in order to balance a load on different servers. How to do this?


Daily Maintanence Task is executed by Cron daemon, and the way it being run may be slightly different on various Linux distributions. Also, on Windows systems, it is run by Task Scheduler. So, the way to change its execution time will vary too. Here are the instructions for different Plesk installations.


The behavior is configured by /etc/crontab file:

# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.


# m h dom mon dow user command
14 * * * * root cd / && run-parts --report /etc/cron.hourly
9 2 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
15 1 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
33 1 10 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

In this case, cron.daily is executed on 02:09 AM every day.


Daily Task script is run by /etc/cron.daily/50plesk-daily script. To change the time of execution cron.daily jobs, edit /etc/cron.d/dailyjobs :

# Run the daily, weekly, and monthly jobs if cronie-anacron is not installed

# run-parts
23 3 * * * root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.daily
21 4 * * 0 root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.weekly
58 4 29 * * root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.monthly

In this case, cron.daily task is configured to be run on 3:23 AM.


Execution time is configured in /etc/anacrontab by the parameter START_HOURS_RANGE :

# cat /etc/anacrontab
# /etc/anacrontab: configuration file for anacron

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

# the maximal random delay added to the base delay of the jobs
# the jobs will be started during the following hours only

#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

Note the "delay in minutes" column. It means that with a parameter START_HOURS_RANGE= 3 -22 cron.daily scripts will be run on 03:05 AM. As this behavior may appear a bit sophisticated, you may refer to an official documentation of Oracle Linux for details.


Open Control Panel > Administrative Tools > Task Scheduler . In Task Scheduler Library find a task with a name Plesk Scheduler Task #{UUID} and a description Daily script task . Open its properties, change to tab Triggers and edit the trigger with desired values of start time.


Have more questions? Submit a request
Please sign in to leave a comment.