Try to fix newuidmap exec not found
This commit is contained in:
@@ -106,7 +106,7 @@ with lib;
|
||||
onFailure = [ "service-failure-notify@%n.service" ];
|
||||
startLimitBurst = 5;
|
||||
startLimitIntervalSec = 600;
|
||||
path = [ pkgs.coreutils pkgs.podman-compose ];
|
||||
path = [ pkgs.coreutils pkgs.podman pkgs.podman-compose ];
|
||||
serviceConfig = {
|
||||
Type = "exec";
|
||||
User = "numbus-admin";
|
||||
@@ -114,10 +114,10 @@ with lib;
|
||||
TimeoutStartSec = "1000";
|
||||
ExecStartPre = [
|
||||
"${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'"
|
||||
"/run/wrappers/bin/podman compose -f /etc/podman/${name}/compose.yaml pull"
|
||||
"${pkgs.podman}/bin/podman compose -f /etc/podman/${name}/compose.yaml pull"
|
||||
];
|
||||
ExecStart = "/run/wrappers/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans";
|
||||
ExecStop = "/run/wrappers/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down";
|
||||
ExecStart = "${pkgs.podman}/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans";
|
||||
ExecStop = "${pkgs.podman}/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "3m";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user