From 24320f4a9e398e03374d8dbca95d553850ac2ee4 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Mon, 8 Oct 2018 16:28:35 +0200 Subject: nixos/prometheus-varnish-exporter: avoid crash on restart --- nixos/modules/services/monitoring/prometheus/exporters/varnish.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules/services') diff --git a/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix b/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix index 8dbf2d735ab9..aaed76175b84 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix @@ -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} \ -- cgit 1.4.1