From 00817732a32ef9795467af0078e4700fd0828900 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 20 Oct 2024 18:19:12 +0100 Subject: [PATCH] ops/nixos/seaweedfs: restart always --- ops/nixos/lib/seaweedfs.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ops/nixos/lib/seaweedfs.nix b/ops/nixos/lib/seaweedfs.nix index a653c30580..58c5c33007 100644 --- a/ops/nixos/lib/seaweedfs.nix +++ b/ops/nixos/lib/seaweedfs.nix @@ -184,6 +184,7 @@ in { DynamicUser = true; RuntimeDirectory = "seaweedfs-filer"; StateDirectory = "seaweedfs-filer"; + Restart = "always"; }; }; }) (lib.mkIf (cfg.master.enable) { @@ -201,6 +202,7 @@ in { DynamicUser = true; RuntimeDirectory = "seaweedfs-master"; StateDirectory = "seaweedfs-master"; + Restart = "always"; }; }; }) (lib.mkIf (cfg.volume.enable) { @@ -221,6 +223,7 @@ in { DynamicUser = true; RuntimeDirectory = "seaweedfs-volume"; StateDirectory = "seaweedfs-volume"; + Restart = "always"; }; }; })];