From 57b47f9d578128def2b23e2321666b4c54478db6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 11 Aug 2021 08:04:57 +0200 Subject: [PATCH] polybar-weather: restart on failure --- dotfiles/systemd/polybar-weather.service | 2 ++ dotfiles/systemd/polybar-weather.timer | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/systemd/polybar-weather.service b/dotfiles/systemd/polybar-weather.service index a795002..13d7a71 100644 --- a/dotfiles/systemd/polybar-weather.service +++ b/dotfiles/systemd/polybar-weather.service @@ -10,3 +10,5 @@ ExecStart=/usr/bin/mkdir -p %h/.cache/i3 ExecStart=%h/.config/i3/bin/polybar-weather Type=oneshot RemainAfterExit=false +Restart=on-failure +RestartSec=3s diff --git a/dotfiles/systemd/polybar-weather.timer b/dotfiles/systemd/polybar-weather.timer index 467db69..c8c803a 100644 --- a/dotfiles/systemd/polybar-weather.timer +++ b/dotfiles/systemd/polybar-weather.timer @@ -3,5 +3,5 @@ Description=Timer for weather update PartOf=graphical-session.target [Timer] -OnUnitActiveSec=1h +OnUnitInactiveSec=1h OnClockChange=true