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 %}