New: systemd-status-mail - crons MAILTO for systemd timer
Hi, for os-update (https://manpages.opensuse.org/os-update) I wanted to be informed, if the update failed. cron had this nice "MAILTO" feature, so I wrote something similar for systemd services as subpackage: systemd-status-mail (https://manpages.opensuse.org/systemd-status-mail) It can send an email with the output of journalctl of the service in case it fails and/or succeeds. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)
Helo Torsten, Am Freitag, 18. November 2022, 13:29:54 WET schrieb Thorsten Kukuk:
for os-update (https://manpages.opensuse.org/os-update) I wanted to be informed, if the update failed. cron had this nice "MAILTO" feature, so I wrote something similar for systemd services as subpackage: systemd-status-mail (https://manpages.opensuse.org/systemd-status-mail)
It can send an email with the output of journalctl of the service in case it fails and/or succeeds.
Very interesting - did you test this with transactional-update.timer already? Cheers Axel
On Fri, Nov 18, Axel Braun wrote:
Helo Torsten,
Am Freitag, 18. November 2022, 13:29:54 WET schrieb Thorsten Kukuk:
for os-update (https://manpages.opensuse.org/os-update) I wanted to be informed, if the update failed. cron had this nice "MAILTO" feature, so I wrote something similar for systemd services as subpackage: systemd-status-mail (https://manpages.opensuse.org/systemd-status-mail)
It can send an email with the output of journalctl of the service in case it fails and/or succeeds.
Very interesting - did you test this with transactional-update.timer already?
# cat /etc/systemd/system/transactional-update.service.d/status-mail.conf [Unit] OnFailure=systemd-status-mail@%n.service But openQA is too good, transactional-update didn't failed for me for a very long time ;) Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)
Am Freitag, 18. November 2022, 17:47:28 CET schrieb Thorsten Kukuk:
On Fri, Nov 18, Axel Braun wrote:
Helo Torsten,
Am Freitag, 18. November 2022, 13:29:54 WET schrieb Thorsten Kukuk:
for os-update (https://manpages.opensuse.org/os-update) I wanted to be informed, if the update failed. cron had this nice "MAILTO" feature, so I wrote something similar for systemd services as subpackage: systemd-status-mail (https://manpages.opensuse.org/systemd-status-mail)
It can send an email with the output of journalctl of the service in case it fails and/or succeeds.
Very interesting - did you test this with transactional-update.timer already? # cat /etc/systemd/system/transactional-update.service.d/status-mail.conf [Unit] OnFailure=systemd-status-mail@%n.service
But openQA is too good, transactional-update didn't failed for me for a very long time ;)
I'm sure, we can fix that. SCR Pete -- Life without chameleons is possible, but pointless.
participants (3)
-
Axel Braun
-
Hans-Peter Jansen
-
Thorsten Kukuk