Merge pull request #47990 from thefloweringash/prometheus-snmp-exporter-args

nixos/prometheus-snmp-exporter: fix command line argument format
This commit is contained in:
Jörg Thalheim 2018-10-07 11:49:53 +01:00 committed by GitHub
commit 68bd7c3062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,10 +60,10 @@ in
DynamicUser = true; DynamicUser = true;
ExecStart = '' ExecStart = ''
${pkgs.prometheus-snmp-exporter.bin}/bin/snmp_exporter \ ${pkgs.prometheus-snmp-exporter.bin}/bin/snmp_exporter \
-config.file ${configFile} \ --config.file=${configFile} \
-log.format ${cfg.logFormat} \ --log.format=${cfg.logFormat} \
-log.level ${cfg.logLevel} \ --log.level=${cfg.logLevel} \
-web.listen-address ${cfg.listenAddress}:${toString cfg.port} \ --web.listen-address=${cfg.listenAddress}:${toString cfg.port} \
${concatStringsSep " \\\n " cfg.extraFlags} ${concatStringsSep " \\\n " cfg.extraFlags}
''; '';
}; };