formula-prometheus-ng/prometheus/files/prometheus.systemd.jinja

19 lines
425 B
Text
Raw Normal View History

2016-10-04 11:03:07 -04:00
[Unit]
Description=Monitoring system and time series database
Documentation=https://prometheus.io/docs/introduction/overview/
Wants=basic.target
After=basic.target network.target
[Service]
User={{ user }}
Group={{ user }}
2016-10-04 11:03:07 -04:00
EnvironmentFile=/etc/default/prometheus
ExecStart={{ bin_path }}/prometheus $ARGS
2016-10-04 11:03:07 -04:00
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=42s
[Install]
WantedBy=multi-user.target