lxc-exporter/lxc-exporter.service.erb

18 lines
443 B
Plaintext

[Unit]
Description=Prometheus lxc-exporter for getting container health
Documentation=https://git.denkn.at/deac/lxc-exporter
After=network-online.target
[Service]
Type=notify
KillMode=mixed
WatchdogSec=10
Restart=always
User=prometheus
WorkingDirectory=<%= Dir.pwd %>
ExecStart=<%= `which bundle`.chomp %> exec puma -b tcp://[::]:9124 -e production --tag lxc-exporter
ExecReload=/bin/kill -USR1 $MAINPID
[Install]
WantedBy=multi-user.target