2019-06-19 01:23:45 +02:00
|
|
|
#########################################################
|
|
|
|
# File managed by Salt. Changes risk being overwritten.
|
|
|
|
#########################################################
|
|
|
|
[Unit]
|
|
|
|
Description={{ desc }}
|
2019-06-20 02:36:58 +02:00
|
|
|
Wants=network-online.target
|
|
|
|
After=
|
2019-06-19 01:23:45 +02:00
|
|
|
Documentation=https://github.com/saltstack-formulas/prometheus-formula
|
|
|
|
|
|
|
|
[Service]
|
2020-11-11 14:14:34 +01:00
|
|
|
{% for var in env %}
|
|
|
|
Environment={{ var }}
|
|
|
|
{% endfor %}
|
2019-06-19 01:23:45 +02:00
|
|
|
User={{ user }}
|
|
|
|
Group={{ group }}
|
2019-06-20 02:36:58 +02:00
|
|
|
WorkingDirectory={{ workdir }}
|
2019-06-19 01:23:45 +02:00
|
|
|
ExecStart={{ start }}
|
|
|
|
ExecStop={{ stop }}
|
|
|
|
PIDFile=/var/run/{{ name }}.pid
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|