ansible-ffibk/roles/service-prometheus/templates/prometheus.service.j2

20 lines
459 B
Text
Raw Normal View History

2017-12-05 05:58:34 +01:00
[Unit]
Description=Prometheus server daemon.
After=network.target
[Service]
Type=simple
User={{ prometheus_user }}
Group={{ prometheus_group }}
{% if prometheus_opts is defined %}
2018-09-11 13:49:57 +02:00
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }} {{ prometheus_opts }}
2017-12-05 05:58:34 +01:00
{% else %}
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }}
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
2017-12-14 19:45:27 +01:00
[Install]
WantedBy=multi-user.target