From 1bee8e81f99a64ad21774d8bee9b8b1957b7e485 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 11 Jun 2024 15:46:58 -0400 Subject: Fix dynamic DNS retries and e-mail alert throttling --- hostnix/elmo/system.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hostnix/elmo/system.nix') diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix index 23a6aa6..d98d1ff 100644 --- a/hostnix/elmo/system.nix +++ b/hostnix/elmo/system.nix @@ -56,6 +56,11 @@ # https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO systemd.services."status-email@" = { description = "Status email for %i"; + unitConfig = { + # Throttle notifications to twice daily. + StartLimitIntervalSec = "12hr"; + StartLimitBurst = "1"; + }; serviceConfig = { Type = "oneshot"; }; -- cgit v1.3.1