我将一些 cron 作业转换为systemd.timer单位,并希望发送有关每个作业失败和成功的邮件。
优秀的ArchLinux wiki 页面提供了相关信息,并且设置在失败时也能顺利运行。现在我想在单元成功运行时添加电子邮件通知,但根据systemd.unit没有名为OnSuccess=的配置的配置。
如何处理这个用例?
systemd systemd-timer
systemd ×1
systemd-timer ×1