cluster/services/attic: auto-restart atticd

This commit is contained in:
Max Headroom 2024-02-11 19:52:11 +01:00
parent ddf31e5e0c
commit 6a51b09f8c

View file

@ -72,6 +72,8 @@ in
after = [ "postgresql.service" ]; after = [ "postgresql.service" ];
serviceConfig = { serviceConfig = {
DynamicUser = lib.mkForce false; DynamicUser = lib.mkForce false;
Restart = "on-failure";
RestartSec = "10s";
}; };
environment = { environment = {
AWS_SHARED_CREDENTIALS_FILE = config.age.secrets.atticS3Credentials.path; AWS_SHARED_CREDENTIALS_FILE = config.age.secrets.atticS3Credentials.path;