On Wed, May 8, 2019 at 2:45 PM Per Jessen <per@computer.org> wrote:
Andrei Borzenkov wrote:
On Wed, May 8, 2019 at 2:30 PM Per Jessen <per@computer.org> wrote:
That disappeared long ago. Precisely because of daemons such as crond, mdadmd, smartd needing a place to report their results. Makes me wonder - how do systemd timers handle the output? Just wondering out loud, I hadn't thought about that one before.
systemd timer do not do much - they just start other units (most pften services) so they do not have much to report. When they do, it goes into journal (or whatever logging method systemd supports).
Same applies to services started by timer. They are just systemd units. Either they use logging options supported by systemd (mot likely journald by default) or they implement something different themselves. Systemd does not support e-mailing service output.
Would you happen to know if the old behaviour of cronjobs/timers sending an email to MAILTO is still supported?
Not to my best knowledge. MAILTO was implemented by crond which got job output and e-mailed it. Now it is journald that gets output (if anything) and journald does not send any e-mail. Crude workaround is to use something like ExecStart=/bin/sh -c 'program args ... | mail your-mail-address' Where your-mail-address could be set in some configuration file. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org