2023-10-13 23:17:59 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Prometheus lxc-exporter for getting container health
|
2023-10-13 23:45:30 +02:00
|
|
|
Documentation=https://git.denkn.at/deac/lxc-exporter
|
|
|
|
After=network-online.target
|
2023-10-13 23:17:59 +02:00
|
|
|
|
|
|
|
[Service]
|
2023-10-13 23:45:30 +02:00
|
|
|
Type=notify
|
|
|
|
KillMode=mixed
|
|
|
|
WatchdogSec=10
|
2023-10-13 23:17:59 +02:00
|
|
|
Restart=always
|
|
|
|
User=prometheus
|
|
|
|
WorkingDirectory=<%= Dir.pwd %>
|
2023-10-13 23:45:30 +02:00
|
|
|
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
|