• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Can we change time for daily cronjobs?

Ivo

Basic Pleskian
Hello all

Simple question, I'm sorry if it was answered before.

I'm curios if it is possible to change the time when daily cronjobs (those made by you guys, for instance: 50plesk-daily)

I would like them to start earlier, around midnight and not in morning when most customers come online.

We have a problem on server with resource distribution (long story) and those cronjobs take several hours to finish and they slow down server.
 
Hi Ivo,

sure, you could edit the file "/etc/crontab" - the system-wide crontab.

For example:

You might see something similar in this file:
Code:
...

# m h dom mon dow user    command
00 *    * * *    root    cd / && run-parts --report /etc/cron.hourly >/dev/null 2>&1
00 0    * * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) >/dev/null 2>&1
00 0    * * 7    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) >/dev/null 2>&1
00 0    1 * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) >/dev/null 2>&1

...

As you can see, the crontabs are defined with:

m = minute
h = hour
dom = day of the month
mon = month
dow = day of the week
user = name of the system-user
command = command to perform​
Pls. change the m/h/dom/mon/dow to YOUR desired time/day/month/day-of-the-month to fit your very own needs and desires. :) ( Pls. keep in mind, that a "*" defines EVERY possible minute/hour/day/month/day-of-the-week and minutes are always defined with a double-number). ;)
 
Hello

Silly me I forgot to mention important part. We use cloudlinux in combination with plesk 12.5.

I'm saying that cause file /etc/crontab is empty, so do you have any idea where else might those cron's be stored? On regular plesk 12.5 crontab indeed looks like you mentioned but here its empty.
 
Hi Ivo,

did you consider to have a look at "/etc/cron.d" ? Or did you consider to use the "locate" - search - command ( requires "mlocate" to be installed on your server - consider to use the forum - search, if you need more informations to installation and usage of "mlocate" ) ?

Code:
locate crontab
 
Back
Top