Systemd Timers have had this for a while.
Systemd Timers have had this for a while.
Personally I find the OpenBSD solution far more elegant and UNIXy than the systemd one, but to each their own.
What would you say is wrong with RandomizedDelaySec?
[Timer]
OnCalendar=daily
RandomizedDelaySec=12h
might take few more seconds to type, but it's definitely readable without any additional documentation.https://www.freedesktop.org/software/systemd/man/systemd.tim...
Ie seconds if no units specified.
Sounds like a lousy standard if the correct way to use it is to say "I want to delay by 12 hour seconds". What is even "12 hour seconds"?
"Sec" suffix indicates time and implements a default of seconds, where a suffix to the value indicates a change in unit.
It would be like Asking "Memory Allocation(MB)" but accepting "12G" for 12 GB.
RandomizedDelaySec=Even if their cron does...
Proper design reduces complexity. The above adds a lot of complexity, and thus it's a hack. Not the appearance.
Otherwise with your standard of hack anything beyond hello world and baby's first input are hacks because everything else requires boilerplate.