Dave Howorth wrote:
On Mon, 08 May 2023 10:58:03 +0200 Per Jessen <per@opensuse.org> wrote:
Dave, do you have a URL for that?
I have the arch wiki page: https://wiki.archlinux.org/title/systemd/Timers
Yes, section 6.4 of that page says "Several of the caveats can be worked around by installing a package that parses a traditional crontab to configure the timers, like systemd-cron. It can provide the missing MAILTO feature."
Thanks, I must go see my optometrist, urgently.
There is a reference to systemd-cron https://aur.archlinux.org/packages/systemd-cron (
which you already found?
I have not yet taken a closer look - I'm pondering why there would be a need for both cron and timers. Maybe this systemd-cron thing is quite new, I see no package for TW nor for Leap. However(!), on tw I do see a "systemd-generator-cron2timer ...
I have also just now seen that there is a "systemd-crontab-generator", that sounds like something to take a closer look at.
That's what systemd.cron runs apparently. However, note that https://manpages.ubuntu.com/manpages/focal/man7/systemd.cron.7.html says : "LIMITATIONS This cron replacement only send mails on failure. The log of jobs is saved in systemd journal."
So perhaps it is of no use to you.
Yeah, it sounds like it is using the OnFailure facility. TBH, I'm beginning to have my doubts - last night I was just testing a new logrotate setup, and I clearly had not quite understood how the "preremove" feature works. From my regular cronjob, I would have had the warning, from the systemd timer I got nothing. -- Per Jessen, Zürich (21.1°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes