Merge pull request #281654 from SuperSandro2000/portunus-restart

nixos/portunus: restart on failure
This commit is contained in:
Lin Jian
2024-01-20 09:17:18 +08:00
committed by GitHub
+4 -1
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}/bin/portunus-orchestrator";
Restart = "on-failure";
};
environment = {
PORTUNUS_LDAP_SUFFIX = cfg.ldap.suffix;
PORTUNUS_SERVER_BINARY = "${cfg.package}/bin/portunus-server";