• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Power Management - Day of week usage differ from cron

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    5
    619
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Florent
      last edited by Florent

      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 WEDNESDAY

      I 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
      Bretagne, FRANCE

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @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 in C:\Program Files (x86)\FOG directory (might as well rename the original file instead of overwriting it).

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • F
          Florent
          last edited by

          Thanks for your quickly solution.
          It’s resolve this.

          It’s possible to push it to the next release ?

          Florent
          Bretagne, FRANCE

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @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.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            F 1 Reply Last reply Reply Quote 0
            • F
              Florent @Sebastian Roth
              last edited by

              @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

              Florent
              Bretagne, FRANCE

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post

              199

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project