Hi,
Both delayed and cron-style scheduled tasks are now working for me.
After reading Sebastian’s reply, I ran the provided PHP code on the web server and the time was correct.
I then double checked TZ INFO in FOG Configuration -> FOG Settings -> General Settings and it was indeed set to the correct time zone, but I pressed update anyway and then I ran systemctl restart FOGScheduler
.
As soon as I ran that command, my test computer turned on. Here is the log output from that time:
[01-20-20 11:31:06 am] Interface Ready with IP Address: 127.0.0.1
[01-20-20 11:31:06 am] Interface Ready with IP Address: 127.0.1.1
[01-20-20 11:31:06 am] Interface Ready with IP Address: 192.168.20.17
[01-20-20 11:31:06 am] Interface Ready with IP Address: localhost.localdomain
[01-20-20 11:31:06 am] * Starting TaskScheduler Service
[01-20-20 11:31:06 am] * Checking for new items every 60 seconds
[01-20-20 11:31:06 am] * Starting service loop
[01-20-20 11:31:06 am] * 3 tasks found.
[01-20-20 11:31:06 am] * Task run time: Fri, 17 Jan 2020 12:38:00 +1100
[01-20-20 11:31:06 am] * Found a task that should run.
[01-20-20 11:31:06 am] - Is a host based task.
[01-20-20 11:31:06 am] - Unicast task found!
[01-20-20 11:31:06 am] - Host cg1new
[01-20-20 11:31:06 am] - Tasks started for host cg1new!
[01-20-20 11:31:06 am] * Task run time: Thu, 16 Jan 2020 11:11:00 +1100
The time in the log is also correct now. I’ve never ran systemctl restart FOGScheduler
before but I have restarted my FOG server multiple times since setting TZ INFO.
My only question now is whether restarting the server has the same effect on the FOGScheduler service as running systemctl restart FOGScheduler
?
Thanks for the assistance.