19 lines
485 B
Text
19 lines
485 B
Text
|
[Unit]
|
||
|
Description=Prometheus server daemon.
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
|
||
|
PIDFile={{ prometheus_pid_path }}/prometheus.pid
|
||
|
|
||
|
User={{ prometheus_user }}
|
||
|
Group={{ prometheus_group }}
|
||
|
|
||
|
{% if prometheus_opts is defined %}
|
||
|
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }} {{ prometheus_node_exporter_opts }}
|
||
|
{% else %}
|
||
|
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }}
|
||
|
{% endif %}
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|