diff options
| author | Joe Mou <dev@mou.fo> | 2024-04-26 23:51:10 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2024-04-26 23:54:59 -0400 |
| commit | 07a7baeb6bf21ce2018fc558fb849ba17669fb89 (patch) | |
| tree | 0c45464e5ddada029cfc980705773e28e9cc8133 /hostnix/elmo/email.nix | |
| parent | cb908f1341fdbfffb45c40b9f83ee540312b076e (diff) | |
elmo: E-mail on certain systemd failures
Diffstat (limited to 'hostnix/elmo/email.nix')
| -rw-r--r-- | hostnix/elmo/email.nix | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
