git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/prometheus-varnish-exporter: avoid crash on restart
commit24320f4a9e398e03374d8dbca95d553850ac2ee4 authorWilliButz <wbutz@cyberfnord.de> dateMon 8 Oct 2018, 16:28 (8 years ago) parentcefd0f7
1 file changed+1
nixos/modules/services/monitoring/prometheus/exporters/varnish.nix+1
nixos/modules/services/monitoring/prometheus/exporters/varnish.nix+1
@@ -69,6 +69,7 @@ in
6969 path = [ pkgs.varnish ];
7070 serviceConfig = {
7171 DynamicUser = true;
72+ RestartSec = mkDefault 1;
7273 ExecStart = ''
7374 ${pkgs.prometheus-varnish-exporter}/bin/prometheus_varnish_exporter \
7475 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \