nixos/prometheus-exporters/pgbouncer: replace systemd script with ExecStart

This commit is contained in:
h7x4
2025-10-27 18:52:07 +09:00
parent 6e31242835
commit 0d841cc8bb
@@ -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) [