From 9e1f9fb2ba0b351a492acb18e826064f9cd29483 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Thu, 28 Apr 2022 00:32:04 -0300 Subject: [PATCH] systemd: lower limit of restarts per second --- dotfiles/systemd/gammastep.service | 2 ++ dotfiles/systemd/kanshi.service | 2 ++ dotfiles/systemd/kdeconnect-indicator.service | 2 ++ dotfiles/systemd/kdeconnectd.service | 2 ++ dotfiles/systemd/mako.service | 2 ++ dotfiles/systemd/telegram-desktop.service | 2 ++ dotfiles/systemd/waybar.service | 2 ++ 7 files changed, 14 insertions(+) diff --git a/dotfiles/systemd/gammastep.service b/dotfiles/systemd/gammastep.service index a03a277..7d77adb 100644 --- a/dotfiles/systemd/gammastep.service +++ b/dotfiles/systemd/gammastep.service @@ -9,6 +9,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/bin/env _gammastep Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target diff --git a/dotfiles/systemd/kanshi.service b/dotfiles/systemd/kanshi.service index bcd1086..267e975 100644 --- a/dotfiles/systemd/kanshi.service +++ b/dotfiles/systemd/kanshi.service @@ -9,6 +9,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/usr/bin/kanshi Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target diff --git a/dotfiles/systemd/kdeconnect-indicator.service b/dotfiles/systemd/kdeconnect-indicator.service index ce3f21d..1e759f1 100644 --- a/dotfiles/systemd/kdeconnect-indicator.service +++ b/dotfiles/systemd/kdeconnect-indicator.service @@ -9,6 +9,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/bin/env kdeconnect-indicator Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target diff --git a/dotfiles/systemd/kdeconnectd.service b/dotfiles/systemd/kdeconnectd.service index 18900b9..94531fa 100644 --- a/dotfiles/systemd/kdeconnectd.service +++ b/dotfiles/systemd/kdeconnectd.service @@ -9,6 +9,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/bin/env _kdeconnectd Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target diff --git a/dotfiles/systemd/mako.service b/dotfiles/systemd/mako.service index 3539293..93a19f6 100644 --- a/dotfiles/systemd/mako.service +++ b/dotfiles/systemd/mako.service @@ -9,6 +9,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/usr/bin/mako Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target diff --git a/dotfiles/systemd/telegram-desktop.service b/dotfiles/systemd/telegram-desktop.service index c749db9..2b31b7d 100644 --- a/dotfiles/systemd/telegram-desktop.service +++ b/dotfiles/systemd/telegram-desktop.service @@ -7,6 +7,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/usr/bin/telegram-desktop Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target diff --git a/dotfiles/systemd/waybar.service b/dotfiles/systemd/waybar.service index 713209d..7501a3d 100644 --- a/dotfiles/systemd/waybar.service +++ b/dotfiles/systemd/waybar.service @@ -9,6 +9,8 @@ PartOf=graphical-session.target Type=simple ExecStart=/usr/bin/waybar Restart=always +StartLimitBurst=2 +StartLimitInterval=1 [Install] WantedBy=sway-session.target