aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/init/linux-systemd/ejabberd-influxdb.service
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2019-10-24 20:31:50 +0200
committernico <nico@magicbroccoli.de>2019-10-24 20:31:50 +0200
commite3e3222f203d8ec209bd63d1229090472ef7ba49 (patch)
tree37cbf858674208919f14561cc9302ce17fe9028a /contrib/init/linux-systemd/ejabberd-influxdb.service
parent1a63916b4e9911e0cd9348e95846ef9455cc97e5 (diff)
parent40edb13762a7c46b23681aca62158fd249ff9b29 (diff)
Merge branch 'influxdb' into 'master'
InfluxDB Plugin See merge request sum7/ejabberd-metrics!1
Diffstat (limited to 'contrib/init/linux-systemd/ejabberd-influxdb.service')
-rw-r--r--contrib/init/linux-systemd/ejabberd-influxdb.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/init/linux-systemd/ejabberd-influxdb.service b/contrib/init/linux-systemd/ejabberd-influxdb.service
new file mode 100644
index 0000000..bade80f
--- /dev/null
+++ b/contrib/init/linux-systemd/ejabberd-influxdb.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=ejabberd2influxdb
+
+[Service]
+Type=simple
+User=nobody
+Group=nobody
+ExecStart=/opt/ejabberd-metrics/influx.py
+Restart=always
+RestartSec=5s
+Environment=PATH=/usr/bin:/usr/local/bin
+
+[Install]
+WantedBy=multi-user.target