On Mon, 2017-05-29 at 22:20 +0530, madhava chari wrote:
Hi,
This is regarding issue in the cron jobs.
Issue :
When the timezone is set to UTC (or) EEST, and if we add the
cron
job to run on a specified hour and minute, the cron daemon is able to
schedule the cron jobs in the specified time and works properly.
But if the timezone is set to IST and if we add the cron job to run
on a
specified hour and minute, the cron daemon is not able to schedule
the cron
jobs.
...
Temporary solution to the problem :
If the timezone is set to IST, and after restarting the cron service
using
( systemctl restart crond.service ) everything is working normally,
cron
daemon is able to schedule the jobs at specified time.
How did the restart of the cron service resolved the issue..? and how
to
fix this issue permanently..?
This is expected and there is no other solution than to restart the
crond after changing the system timezone.
You can set per-job timezone with adding TZ=IST to the start of the job
file.
--
Tomáš Mráz
Red Hat
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]
* Google and NSA associates, this message is none of your business.
* Please leave it alone, and consider whether your actions are
* authorized by the contract with Red Hat, or by the US constitution.
* If you feel you're being encouraged to disregard the limits built
* into them, remember Edward Snowden and Wikileaks.