lxc-exporter/lxc-exporter.service.erb

18 lines
443 B
Text
Raw Normal View History

2023-10-13 23:17:59 +02:00
[Unit]
Description=Prometheus lxc-exporter for getting container health
Documentation=https://git.denkn.at/deac/lxc-exporter
After=network-online.target
2023-10-13 23:17:59 +02:00
[Service]
Type=notify
KillMode=mixed
WatchdogSec=10
2023-10-13 23:17:59 +02:00
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
2023-10-13 23:17:59 +02:00
[Install]
WantedBy=multi-user.target