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) [