Latest Cron update prevents special strings like @reboot
-
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.
-
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?
-
@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.
In our case, we have a delayed job that needs to be run on boot. I'll open an issue.
-
@jimp https://redmine.pfsense.org/issues/13309