about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2020-05-08 12:00:00 +0000
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2020-05-08 12:00:00 +0000
commite96c52efdb23e7cd1a3d166074111b092f75e7c9 (patch)
tree96c707bcddbaecc36f1c601d3aa910d828c36173 /nixos
parentc7db8c1927d3c2e1b290ff001f9256bc15fc7ddf (diff)
downloadnixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.tar
nixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.tar.gz
nixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.tar.bz2
nixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.tar.lz
nixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.tar.xz
nixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.tar.zst
nixlib-e96c52efdb23e7cd1a3d166074111b092f75e7c9.zip
tt-rss: restart on failure
as should be the default with all long-running services
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/tt-rss.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/tt-rss.nix b/nixos/modules/services/web-apps/tt-rss.nix
index 34ce1c605508..831687e1161f 100644
--- a/nixos/modules/services/web-apps/tt-rss.nix
+++ b/nixos/modules/services/web-apps/tt-rss.nix
@@ -634,6 +634,8 @@ let
           ExecStart = "${pkgs.php}/bin/php ${cfg.root}/update.php --daemon --quiet";
           StandardOutput = "syslog";
           StandardError = "syslog";
+          Restart = "on-failure";
+          RestartSec = "60";
         };
 
         wantedBy = [ "multi-user.target" ];