From d8f1198749a768bc40e1dae11f34d395b234efef Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Wed, 8 May 2019 00:02:33 -0400 Subject: [PATCH] Fixed svc->svc_name in service template --- prometheus/files/exporter/service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/files/exporter/service b/prometheus/files/exporter/service index c702bd5..f55c621 100644 --- a/prometheus/files/exporter/service +++ b/prometheus/files/exporter/service @@ -4,11 +4,11 @@ Documentation=https://prometheus.io/docs/introduction/overview/ After=network-online.target [Service] -EnvironmentFile=-/etc/default/{{ svc }} +EnvironmentFile=-/etc/default/{{ svc_name }} User={{ user }} Group={{ user }} Restart=on-failure -ExecStart=/opt/prometheus/{{ exporter }}/bin/{{ svc }} \ +ExecStart=/opt/prometheus/{{ exporter }}/bin/{{ svc_name }} \ {% if svc_args is string %}{{ svc_args }}{% else %} {% for svc_arg in svc_args %} {{ svc_arg }}{% endfor %} {% endif %}