• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Some upgrade moved /etc/cron.hourly out of /etc/crontab but didn't copy the $PATH

Frater

Regular Pleskian
I used to have several scripts running in /etc/cron.hourly and they stopped.
I investigated this and it turned out that commands out of /usr/local/sbin or /usr/local/bin aren't working anymore because the system can't find these commands.

I inspected /etc/crontab and these 2 folders are still in $PATH

I then noticed that /etc/cron.hourly was taken out of /etc/crontab and the entry got moved to /etc/cron.d/0hourly
The $PATH to /usr/local/sbin and /usr/local/bin were not copied
I changed /etc/cron.d/0hourly and now it's working again.

Oh Odin, can you correct that upgrade?
 
Hi,

I do not think Plesk would make these changes.
Could you please tell us which Distrbution, and which Plesk version you are using?

Regards,
Kristian
 
It's Plesk 12.0 on CentOS release 6.7 (Final)

I think you're right and some CentOS upgrade did that.
When I first installed that system I added these folder in /etc/crontab 's $PATH
 
Back
Top