summaryrefslogtreecommitdiff
path: root/hostnix/elmo/email.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-04-26 23:51:10 -0400
committerJoe Mou <dev@mou.fo>2024-04-26 23:54:59 -0400
commit07a7baeb6bf21ce2018fc558fb849ba17669fb89 (patch)
tree0c45464e5ddada029cfc980705773e28e9cc8133 /hostnix/elmo/email.nix
parentcb908f1341fdbfffb45c40b9f83ee540312b076e (diff)
elmo: E-mail on certain systemd failures
Diffstat (limited to 'hostnix/elmo/email.nix')
-rw-r--r--hostnix/elmo/email.nix3
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