From 903e06d734bcae48efb79b9afd51b406d2744179 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 6 Aug 2023 03:00:44 -0600 Subject: [PATCH] taffybar: Avoid restarting too quickly (#4316) --- modules/services/taffybar.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/services/taffybar.nix b/modules/services/taffybar.nix index 42ca5f7bb..39a6c43ef 100644 --- a/modules/services/taffybar.nix +++ b/modules/services/taffybar.nix @@ -32,6 +32,8 @@ in { Unit = { Description = "Taffybar desktop bar"; PartOf = [ "tray.target" ]; + StartLimitBurst = 5; + StartLimitIntervalSec = 10; }; Service = { @@ -39,6 +41,7 @@ in { BusName = "org.taffybar.Bar"; ExecStart = "${cfg.package}/bin/taffybar"; Restart = "on-failure"; + RestartSec = "2s"; }; Install = { WantedBy = [ "tray.target" ]; };