[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: migration from cron.daily to systemd timers




On January 8, 2020 7:57:51 PM UTC, Noah Meyerhans <noahm@debian.org> wrote:
>
>The big drawback of systemd timers, IMO, is that a nonzero exit code
>doesn't generate email by default the way cron does.  At smaller sites,
>anyway, this is a perfectly sensible way of being notified of problems
>with the job.

That's correct, they log the failure to the journal and/or syslog, but do not email. You can use OnFailure to send an email... not sure if there is a way to do that by default.

Also, don't think anyone has mentioned it, but "systemctl list-timers" is a nice advantage of timers, too. And it can actually take into account the randomized start delay, something no cron-equivalent could do.


Reply to: