nixos/prometheus-varnish-exporter: avoid crash on restart

(cherry picked from commit 24320f4a9e)
This commit is contained in:
WilliButz
2018-10-08 16:28:35 +02:00
committed by Franz Pletz
parent a8ad1fbe92
commit 59940fbcd6

View File

@@ -69,6 +69,7 @@ in
path = [ pkgs.varnish ];
serviceConfig = {
DynamicUser = true;
RestartSec = mkDefault 1;
ExecStart = ''
${pkgs.prometheus-varnish-exporter}/bin/prometheus_varnish_exporter \
--web.listen-address ${cfg.listenAddress}:${toString cfg.port} \