From 41c05eb1ec9966f61a1d26267f7a5c79c7f7df4b Mon Sep 17 00:00:00 2001 From: Kaan Genc Date: Thu, 17 Mar 2022 17:10:13 -0400 Subject: [PATCH] auto restart services --- systemd/user/blueman-applet.service | 4 ++++ systemd/user/kdeconnectd.service | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/systemd/user/blueman-applet.service b/systemd/user/blueman-applet.service index 4b73a41..baad0e1 100644 --- a/systemd/user/blueman-applet.service +++ b/systemd/user/blueman-applet.service @@ -1,10 +1,14 @@ [Unit] Description=Run blueman applet. After=graphical-session.target +StartLimitIntervalSec=600 +StartLimitBurst=5 [Service] type=basic ExecStart=/usr/bin/blueman-applet +Restart=on-failure +RestartSec=5s [Install] WantedBy=graphical-session.target diff --git a/systemd/user/kdeconnectd.service b/systemd/user/kdeconnectd.service index da8f118..0603dad 100644 --- a/systemd/user/kdeconnectd.service +++ b/systemd/user/kdeconnectd.service @@ -1,10 +1,14 @@ [Unit] Description=Run kdeconnectd. After=graphical-session.target +StartLimitIntervalSec=600 +StartLimitBurst=5 [Service] type=basic ExecStart=/usr/lib/kdeconnectd +Restart=on-failure +RestartSec=5s [Install] WantedBy=graphical-session.target