From 269679ac52657ec1e49cf5af4a3f6ad7b5a9f4f4 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 20 Jun 2021 17:24:19 +0200 Subject: [PATCH] Always restart goimapnotify --- modules/periodic.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index 0efb4e7..09a1913 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -49,7 +49,11 @@ script = '' ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/uni.conf ''; - serviceConfig.Type = "simple"; + serviceConfig = { + Type = "simple"; + Restart = "always"; + RestartSec = 20; + }; after = [ "network.target" ]; }; @@ -60,7 +64,11 @@ script = '' ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf ''; - serviceConfig.Type = "simple"; + serviceConfig = { + Type = "simple"; + Restart = "always"; + RestartSec = 20; + }; after = [ "network.target" ]; }; }