- Plesk for Linux
The Switch off auto-reply on option does not work as expected: an expiration date is set, but automatic responses are being sent on the next day.
anacron is installed.
In the file
/var/log/cronthe script is run on the next day:
PLESK_INFO: Sep 3 03:01:01 hostname anacron: Anacron started on 2017-09-03
Sep 3 03:01:01 hostname anacron: Will run job `cron.daily' in 35 min.
Sep 3 03:01:01 hostname anacron: Jobs will be executed sequentially
Sep 3 03:36:01 hostname anacron: Job `cron.daily' started
Sep 3 03:41:18 hostname run-parts(/etc/cron.daily): starting 50plesk-daily
Sep 3 03:44:59 hostname run-parts(/etc/cron.daily): finished 50plesk-daily
Sep 3 03:51:05 hostname anacron: Job `cron.daily' terminated
Sep 3 03:51:05 hostname anacron: Normal exit (1 job run)
runs jobs between 03:00 and 22:00 and randomly delays jobs by between 11 and 50 minutes.
Log in to the Plesk server via SSH .
Open the configuration file
/etc/anacrontaband configure the following parameters:
RANDOM_DELAY- the maximum number of random time in minutes that
anacronadds to the
delayparameter for a job. The default minimum delay is 6 minutes.
START_HOURS_RANGE- the time range of hours during the day when anacron can run scheduled jobs.
- delay - number of minutes to wait before running a job.