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