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"; }; }; })];