From 07a7baeb6bf21ce2018fc558fb849ba17669fb89 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Fri, 26 Apr 2024 23:51:10 -0400 Subject: elmo: E-mail on certain systemd failures --- hostnix/elmo/email.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hostnix/elmo/email.nix') diff --git a/hostnix/elmo/email.nix b/hostnix/elmo/email.nix index 462a3d7..1ea4000 100644 --- a/hostnix/elmo/email.nix +++ b/hostnix/elmo/email.nix @@ -17,6 +17,9 @@ systemd.services.postfix-tls-rotate = { requires = [ "network-online.target" ]; after = [ "network-online.target" ]; + unitConfig = { + OnFailure = "status-email@%n.service"; + }; serviceConfig = { Type = "oneshot"; # Not really necessary indirection but interesting to try out. Note we -- cgit v1.3.1