From e3d69af688d487013c63b87e9ba9744650b5b729 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 17 Oct 2019 07:26:26 +0200 Subject: systemd prometheus service --- contrib/init/linux-systemd/ejabberd-exporter.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 contrib/init/linux-systemd/ejabberd-exporter.service (limited to 'contrib/init') diff --git a/contrib/init/linux-systemd/ejabberd-exporter.service b/contrib/init/linux-systemd/ejabberd-exporter.service new file mode 100644 index 0000000..518fc1d --- /dev/null +++ b/contrib/init/linux-systemd/ejabberd-exporter.service @@ -0,0 +1,14 @@ +[Unit] +Description=ejabberd prometheus exporter + +[Service] +Type=simple +User=nobody +User=group +ExecStart=/opt/ejabberd-metrics/prometheus.py +Restart=always +RestartSec=5s +Environment=PATH=/usr/bin:/usr/local/bin + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf