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