Merge pull request #202563 from mfenniak/fix-unifi-poller-service

nixos/prometheus-unifi-poller-exporter: fix executable name in systemd
This commit is contained in:
Luke Granger-Brown 2022-11-24 15:45:57 +01:00 committed by GitHub
commit b7a9466d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ let
poller = { inherit (cfg.log) debug quiet; };
unifi = { inherit (cfg) controllers; };
influxdb.disable = true;
datadog.disable = true; # workaround for https://github.com/unpoller/unpoller/issues/442
prometheus = {
http_listen = "${cfg.listenAddress}:${toString cfg.port}";
report_errors = cfg.log.prometheusErrors;
@ -30,7 +31,7 @@ in {
};
serviceOpts.serviceConfig = {
ExecStart = "${pkgs.unifi-poller}/bin/unifi-poller --config ${configFile}";
ExecStart = "${pkgs.unifi-poller}/bin/unpoller --config ${configFile}";
DynamicUser = false;
};
}