From ba5e2849612a13047383b53912f2cefb07c96141 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 17 Mar 2025 17:44:25 +0400 Subject: [PATCH] fix pg ready cmd --- services/postgres.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/postgres.nix b/services/postgres.nix index e3ef29b..4ba4b95 100644 --- a/services/postgres.nix +++ b/services/postgres.nix @@ -140,7 +140,7 @@ in command = "${script}/bin/run-postgres"; shutdown.signal = 2; readiness_probe = { - exec.command = "${package}/bin/pg_isready -h $RUNTIME_PATH/${name} -p ${builtins.toString port}"; + exec.command = "${package}/bin/pg_isready -h $RUNTIME_PATH/${name} -p ${builtins.toString port} -d postgres"; initial_delay_seconds = 2; period_seconds = 2; timeout_seconds = 2;