aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorgenofire <geno+dev@fireorbit.de>2020-06-10 07:28:10 +0200
committergenofire <geno+dev@fireorbit.de>2020-06-10 07:28:10 +0200
commit3b451600cf5c5adda6e691610216e8eb43440abd (patch)
tree2f020204cfa12186d752d62e4c4ead63a0bdd6e5 /contrib
parent38a7b171808c5a1525da5452b338fac0a9bf2c6b (diff)
systemd: prometheus files with venv
Diffstat (limited to 'contrib')
-rw-r--r--contrib/init/linux-systemd/ejabberd-exporter.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/init/linux-systemd/ejabberd-exporter.service b/contrib/init/linux-systemd/ejabberd-exporter.service
index 2a1e65c..3eb8381 100644
--- a/contrib/init/linux-systemd/ejabberd-exporter.service
+++ b/contrib/init/linux-systemd/ejabberd-exporter.service
@@ -5,10 +5,12 @@ Description=ejabberd prometheus exporter
Type=simple
User=nobody
Group=nobody
-ExecStart=/opt/ejabberd-metrics/prometheus.py
+Environment="VIRTUAL_ENV=/opt/ejabberd-tools/venv"
+Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
+ExecStart=/opt/ejabberd-tools/prometheus.py
+WorkingDirectory=/opt/ejabberd-tools/
Restart=always
RestartSec=5s
-Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target