Quick TIP (Remember to restart crond service after a timezone change)
Hi folks!
I learned this the hard way! I migrated a website from one server to another with crontabs, and the customer needed to have the scripts running on CEST timezone (While the server was on CST timezone), so I changed the timezone but the scripts were still running at CST timezone, some googling and I found out that the crond service doesn’t take the changes of the timezone if you don’t restart so remember:
For RHEL/CentOS:
service crond restart
For other Linux:
/etc/init.d/crond restart
Take care!
Cheers.
