From 0d841cc8bb08b08573ad75c5f4629b63c0e753e1 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 5 Oct 2025 15:41:20 +0900 Subject: [PATCH] nixos/prometheus-exporters/pgbouncer: replace systemd `script` with `ExecStart` --- .../services/monitoring/prometheus/exporters/pgbouncer.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/pgbouncer.nix b/nixos/modules/services/monitoring/prometheus/exporters/pgbouncer.nix index 4b9cc658bf4a..380f49fbba01 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/pgbouncer.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/pgbouncer.nix @@ -139,9 +139,9 @@ in serviceOpts = { after = [ "pgbouncer.service" ]; - script = concatStringsSep " " ( + serviceConfig.ExecStart = concatStringsSep " " ( [ - "exec -- ${escapeShellArg (getExe cfg.package)}" + "${escapeShellArg (getExe cfg.package)}" "--web.listen-address ${cfg.listenAddress}:${toString cfg.port}" ] ++ optionals (cfg.connectionString != null) [