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

Re: Replace cron with systemd timer unit?



The Arch Wiki shows how you can integrate email notifications with .timer

On Thu, Aug 3, 2017 at 11:00 AM, Paul Wise <pabs@debian.org> wrote:
On Thu, Aug 3, 2017 at 1:20 PM, Ricardo Fraile wrote:

> I like some aspects of the .timer, but I don't know if the change is a good
> idea or not at this moment? There are any other package that has changed
> from cron to .timer? What is the official recomendation?

One significant difference between the two is that all cron output is
sent via email, while output from systemd timers is not sent via
email. There is no official recommendation here, but other packages
have migrated from cron to systemd timers, with fallback to cron when
systemd is not running. You can see the apt package for an example and
there is also systemd-cron, which can be used to generate systemd
timers from cron jobs, the results are placed in the
/run/systemd/generator directory at boot time.

--
bye,
pabs

https://wiki.debian.org/PaulWise



Reply to: