diff options
author | Lin Jian <me@linj.tech> | 2024-01-20 09:17:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 09:17:18 +0800 |
commit | 9e98fce0c5c0ff04d0f5f577af3d03890789103f (patch) | |
tree | bb456e71c330a868ee3bcc94880e48851fa3a8bc /nixos | |
parent | b80470927f9924ad56da1f6633f3f91fc40994d0 (diff) | |
parent | 5897d4eb0daed4cdafad977710d9c1e8e3c10950 (diff) |
Merge pull request #281654 from SuperSandro2000/portunus-restart
nixos/portunus: restart on failure
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/portunus.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/portunus.nix b/nixos/modules/services/misc/portunus.nix index 7036a372d1ea8..47af24f024cdf 100644 --- a/nixos/modules/services/misc/portunus.nix +++ b/nixos/modules/services/misc/portunus.nix @@ -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"; |