ops/nixos/seaweedfs: restart always

This commit is contained in:
Luke Granger-Brown 2024-10-20 18:19:12 +01:00
parent 0913b5fab3
commit 00817732a3

View file

@ -184,6 +184,7 @@ in {
DynamicUser = true; DynamicUser = true;
RuntimeDirectory = "seaweedfs-filer"; RuntimeDirectory = "seaweedfs-filer";
StateDirectory = "seaweedfs-filer"; StateDirectory = "seaweedfs-filer";
Restart = "always";
}; };
}; };
}) (lib.mkIf (cfg.master.enable) { }) (lib.mkIf (cfg.master.enable) {
@ -201,6 +202,7 @@ in {
DynamicUser = true; DynamicUser = true;
RuntimeDirectory = "seaweedfs-master"; RuntimeDirectory = "seaweedfs-master";
StateDirectory = "seaweedfs-master"; StateDirectory = "seaweedfs-master";
Restart = "always";
}; };
}; };
}) (lib.mkIf (cfg.volume.enable) { }) (lib.mkIf (cfg.volume.enable) {
@ -221,6 +223,7 @@ in {
DynamicUser = true; DynamicUser = true;
RuntimeDirectory = "seaweedfs-volume"; RuntimeDirectory = "seaweedfs-volume";
StateDirectory = "seaweedfs-volume"; StateDirectory = "seaweedfs-volume";
Restart = "always";
}; };
}; };
})]; })];