nixos/oci-containers: set Restart to on-failure when autoStart is dis… (#485421)

This commit is contained in:
Maximilian Bosch
2026-02-06 14:30:07 +00:00
committed by GitHub
@@ -536,7 +536,7 @@ let
ExecStartPre = [ "${preStartScript}/bin/pre-start" ];
TimeoutStartSec = 0;
TimeoutStopSec = 120;
Restart = "always";
Restart = "on-failure";
}
// optionalAttrs (cfg.backend == "podman") {
Environment = "PODMAN_SYSTEMD_UNIT=%n";