ops/nixos/seaweedfs: restart always
This commit is contained in:
parent
0913b5fab3
commit
00817732a3
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
})];
|
||||
|
|
Loading…
Reference in a new issue