From 40edb13762a7c46b23681aca62158fd249ff9b29 Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 24 Oct 2019 20:31:49 +0200 Subject: final touches # added + add method to escape whitespaces in keys and values # changed * init client handler only once and not every time * don't try to create database on every run just on the first one # removed - vhosts are listed first and after that the respective nodes are listed --- contrib/init/linux-systemd/ejabberd-influxdb.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 contrib/init/linux-systemd/ejabberd-influxdb.service (limited to 'contrib') 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 -- cgit v1.2.3-54-g00ecf