Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve systemd timer functionality to send email on failure #1215

Open
gregharvey opened this issue Nov 10, 2023 · 0 comments
Open

Improve systemd timer functionality to send email on failure #1215

gregharvey opened this issue Nov 10, 2023 · 0 comments
Labels
2.x enhancement New feature or request good first issue Good for newcomers

Comments

@gregharvey
Copy link
Member

As described here in the Arch Linux docs:

And here again in the OpenSuse docs:

Unlike cron, systemd timers do not have an in-built email mechanism when a job fails. To replicate this we can create a script and service that does just that and use OnFailure in the timer config to trigger it. A simple example is provided in the above documentation.

Note, this would also require a change to the role we use for systemd timers, as it does not currently support adding OnFailure to a timer:

@gregharvey gregharvey added enhancement New feature or request good first issue Good for newcomers 2.x labels Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant