From 3ec0b502071ea124f5f01d7e4a827bf293794fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 24 Jul 2023 18:54:47 +0200 Subject: [PATCH] fix(synology-drive): always restart --- modules/services/synology-drive.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/synology-drive.nix b/modules/services/synology-drive.nix index 9ff8384..63776d1 100644 --- a/modules/services/synology-drive.nix +++ b/modules/services/synology-drive.nix @@ -21,7 +21,7 @@ in wantedBy = [ "graphical-session.target" ]; serviceConfig = { ExitType = "cgroup"; - Restart = "on-failure"; + Restart = "always"; RestartSec = "1s"; ExecStartPre = "${pkgs.coreutils}/bin/rm -rf %h/.SynologyDrive/SynologyDrive.app %h/.SynologyDrive/cloud-connect.pid"; ExecStart = "${cfg.package}/bin/synology-drive";