Fixed startDelay

This commit is contained in:
Raphaël Numbus
2026-02-25 22:58:00 +01:00
parent f95cdf5d26
commit 2a3a2f3832
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ ${concatStringsSep "\n" (map (m: " - ${m}") middlewares)}
Type = "exec"; Type = "exec";
ExecStartPre = [ ExecStartPre = [
"${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'" "${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'"
"- ${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} -f /etc/podman/${name}/compose.yaml pull" "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} -f /etc/podman/${name}/compose.yaml pull"
]; ];
ExecStart = "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans"; ExecStart = "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans";
ExecStop = "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down"; ExecStop = "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down";
+1 -1
View File
@@ -19,7 +19,7 @@ helper.mkPodmanService {
scheme = "https"; scheme = "https";
dependencies = [ "network.target" "multi-user.target" ]; dependencies = [ "network.target" "multi-user.target" ];
dataDir = false; dataDir = false;
delaySec = 10; startDelay = 10;
generatedSecrets = { generatedSecrets = {
PIHOLE_PASSWORD = "xkcdpass -n 10 -d -"; PIHOLE_PASSWORD = "xkcdpass -n 10 -d -";
}; };
+1 -1
View File
@@ -18,7 +18,7 @@ helper.mkPodmanService {
reverseProxied = false; reverseProxied = false;
dependencies = [ "network.target" "multi-user.target" ]; dependencies = [ "network.target" "multi-user.target" ];
dataDir = false; dataDir = false;
delaySec = 10; startDelay = 10;
generatedSecrets = { generatedSecrets = {
CLOUDFLARE_DNS_API_TOKEN = "cat ${config.numbus.mail.smtpPasswordPath}"; CLOUDFLARE_DNS_API_TOKEN = "cat ${config.numbus.mail.smtpPasswordPath}";
}; };