Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Latest Cron update prevents special strings like @reboot

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.1k Views
    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.
    • G
      grantph
      last edited by

      It looks like some time validation was recently added to the Cron package, however, it prevents use of special strings such as @reboot.

      https://github.com/pfsense/FreeBSD-ports/blob/1a8a2f338592428dd46e543a884b1758b68198c9/sysutils/pfSense-pkg-Cron/files/usr/local/www/packages/cron/cron_edit.php#L81

      https://docs.freebsd.org/en/books/handbook/config/#_using_services_to_start_services

      We've worked around the issue by commenting out the for loop.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Make an issue in https://redmine.pfsense.org/projects/pfsense-packages and we can fix the new validation to allow those strings.

        I didn't include them as it wasn't immediately clear from the GUI if it was even viable to inject those.

        How exactly are you using them? What values in what fields?

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        G 1 Reply Last reply Reply Quote 0
        • G
          grantph @jimp
          last edited by

          @jimp agreed, the GUI isn't clear, but it was possible. Special strings in the "minute" field, blank for remaining time fields, and who/command fields as normal.

          pfSense Cron 2022-06-27.png

          In our case, we have a delayed job that needs to be run on boot. I'll open an issue.

          G 1 Reply Last reply Reply Quote 0
          • G
            grantph @grantph
            last edited by

            @jimp https://redmine.pfsense.org/issues/13309

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.