Power Management - Day of week usage differ from cron
-
Hi,
We see a weird usage with Power Management (problem only with Shutdown and Reboot , not happen with Wake On Lan).
Number of “Day of Week” does not have the same use as cron.For example :
40 11 * * 3
-In FOG : correspond to TUESDAY
-In CRON : correspond to WEDNESDAYI think it’s a bug on FOG Client interpretation of cron ?
It is possible to restore for Shutdown and Reboot the same usage of “day of week” of cron like this ?0 - Sun Sunday 1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat Saturday 7 - Sun Sunday
Regards
-
@Florent Thanks for letting us know. You are right there. From https://www.quartz-scheduler.net/documentation/quartz-3.x/tutorial/crontriggers.html I figured that the scheduler we use is just a little different than the usual CRON syntax:
… Days-of-Week can be specified as vaules between 1 and 7 (1 = Sunday) …
I just pushed a fix to github and compiled a new Modules.dll. Download it, rename to
Modules.dll
and place inC:\Program Files (x86)\FOG
directory (might as well rename the original file instead of overwriting it). -
Thanks for your quickly solution.
It’s resolve this.It’s possible to push it to the next release ?
-
@Florent said in Power Management - Day of week usage differ from cron:
It’s possible to push it to the next release ?
We’ll definitely include that fix into the next fog-client release. Right now I can’t tell you when that will be. Our main client developer is very busy and I won’t be able to push out a new release without him.
-
@Sebastian-Roth
Ok thanks.
Waiting, workaround for us is to use SUN, MON, TUE, WED, THU, FRI, SAT instead of number for Shutdown and Reboot