nixos/portunus: restart on failure

This commit is contained in:
Sandro Jäckel 2024-01-18 00:07:42 +01:00
parent 6de924611b
commit f154807e93
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -230,7 +230,10 @@ in
description = "Self-contained authentication service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig.ExecStart = "${cfg.package.out}/bin/portunus-orchestrator";
serviceConfig = {
ExecStart = "${cfg.package.out}/bin/portunus-orchestrator";
Restart = "on-failure";
};
environment = {
PORTUNUS_LDAP_SUFFIX = cfg.ldap.suffix;
PORTUNUS_SERVER_BINARY = "${cfg.package}/bin/portunus-server";