aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/init/linux-systemd/ejabberd-influxdb.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/init/linux-systemd/ejabberd-influxdb.service')
-rw-r--r--contrib/init/linux-systemd/ejabberd-influxdb.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/init/linux-systemd/ejabberd-influxdb.service b/contrib/init/linux-systemd/ejabberd-influxdb.service
index 2c4c1b3..af25ae9 100644
--- a/contrib/init/linux-systemd/ejabberd-influxdb.service
+++ b/contrib/init/linux-systemd/ejabberd-influxdb.service
@@ -5,10 +5,12 @@ Description=ejabberd influxdb exporter
Type=simple
User=nobody
Group=nogroup
-ExecStart=/opt/ejabberd-metrics/influx.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/influx.py
+WorkingDirectory=/opt/ejabberd-tools/
Restart=always
RestartSec=5s
-Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target