diff options
| author | Joe Mou <dev@mou.fo> | 2024-06-11 15:46:58 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2024-06-11 16:34:59 -0400 |
| commit | 1bee8e81f99a64ad21774d8bee9b8b1957b7e485 (patch) | |
| tree | 257083a441f602d6930101ae8485fe564daa8bac /hostnix/elmo/system.nix | |
| parent | c835f74a1c76855414666d11e9bf0aee976dee8d (diff) | |
Fix dynamic DNS retries and e-mail alert throttling
Diffstat (limited to 'hostnix/elmo/system.nix')
| -rw-r--r-- | hostnix/elmo/system.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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"; }; |
