Fixed svc->svc_name in service template

This commit is contained in:
Eric Renfro 2019-05-08 00:02:33 -04:00
parent 4591d58fe4
commit d8f1198749
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -4,11 +4,11 @@ Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target After=network-online.target
[Service] [Service]
EnvironmentFile=-/etc/default/{{ svc }} EnvironmentFile=-/etc/default/{{ svc_name }}
User={{ user }} User={{ user }}
Group={{ user }} Group={{ user }}
Restart=on-failure Restart=on-failure
ExecStart=/opt/prometheus/{{ exporter }}/bin/{{ svc }} \ ExecStart=/opt/prometheus/{{ exporter }}/bin/{{ svc_name }} \
{% if svc_args is string %}{{ svc_args }}{% else %} {% if svc_args is string %}{{ svc_args }}{% else %}
{% for svc_arg in svc_args %} {{ svc_arg }}{% endfor %} {% for svc_arg in svc_args %} {{ svc_arg }}{% endfor %}
{% endif %} {% endif %}