Re: Q: systemd-timer vs cron
On 2022-03-13 01:07, Simon McVittie wrote:
> - reserving an environment variable like SKIP_CRON_JOB_UNDER_SYSTEMD=1
> to act as a request to skip parsing this cron job on systemd systems
> (it would also be set like any other environment variable when the cron
> job is executed on a non-systemd system, but that should generally be
> harmless, because programs are generally expected to ignore unknown
> environment variables)
I guess I overlooked this at first, because this sounds like a really
simple solution, 3 LOC or so.
It also shouldn't conflict with anything else out there.
Reply to: