From 029f011f4005c9cff5a2e0549198bd11ebf9395b Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Fri, 13 Oct 2023 23:17:59 +0200 Subject: [PATCH] systemd-service template added --- lxc-exporter.service.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lxc-exporter.service.erb diff --git a/lxc-exporter.service.erb b/lxc-exporter.service.erb new file mode 100644 index 0000000..605dc11 --- /dev/null +++ b/lxc-exporter.service.erb @@ -0,0 +1,11 @@ +[Unit] +Description=Prometheus lxc-exporter for getting container health + +[Service] +Restart=always +User=prometheus +WorkingDirectory=<%= Dir.pwd %> +ExecStart=<%= `which bundle`.chomp %> exec puma -b tcp://localhost:9124 + +[Install] +WantedBy=multi-user.target