From 6b7507384c09b615ab0347adae12713b5aacf56b Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 3 Nov 2023 07:21:09 +0000 Subject: [PATCH] sftpo: restart on failure (e.g. when it fails to bind address --- hosts/by-name/servo/services/export/sftpgo.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/by-name/servo/services/export/sftpgo.nix b/hosts/by-name/servo/services/export/sftpgo.nix index e6db782b..61d9ba91 100644 --- a/hosts/by-name/servo/services/export/sftpgo.nix +++ b/hosts/by-name/servo/services/export/sftpgo.nix @@ -177,5 +177,8 @@ in ReadWritePaths = [ "/var/export/playground" ]; after = [ "network-online.target" ]; wants = [ "network-online.target" ]; + + Restart = "always"; + RestartSec = "20s"; }; }