From d8c32c88045496b55690406ba3876e0f3c48b0eb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 28 Apr 2022 08:30:29 +0200 Subject: vidhar: ... --- hosts/vidhar/prometheus/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'hosts') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 61c5b5de..cd32b4e9 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -288,8 +288,12 @@ in { isSystemUser = true; group = config.services.unbound.group; }; - systemd.services."prometheus-unbound-exporter".serviceConfig = { - DynamicUser = false; + systemd.services."prometheus-unbound-exporter" = { + serviceConfig = { + DynamicUser = false; + Restart = lib.mkForce "always"; + RestartSec = "5"; + }; }; systemd.services."prometheus-zte-exporter@dsl01.mgmt.yggdrasil" = { @@ -417,12 +421,5 @@ in { systemd.services.nginx.serviceConfig.LoadCredential = [ "prometheus.key:${config.sops.secrets."prometheus.key".path}" ]; - - systemd.services."prometheus-unbound-exporter" = { - serviceConfig = { - Restart = lib.mkForce "always"; - RestartSec = "5"; - }; - }; }; } -- cgit v1.2.3