From 893b93379fffd91c18a21315dc0b5c5d7285494c Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 27 Aug 2020 18:10:23 +0200 Subject: Initial working release TeamSpeak InfluxDB exporter base of ejabberd-tools framework + implement TeamSpeak REST api call to gather statistics + implement metrics logic to omit unnecessary data points + add systemd service file + implement pre-commit framework --- .../init/linux-systemd/teamspeak-influx.service | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 contrib/init/linux-systemd/teamspeak-influx.service (limited to 'contrib/init/linux-systemd/teamspeak-influx.service') diff --git a/contrib/init/linux-systemd/teamspeak-influx.service b/contrib/init/linux-systemd/teamspeak-influx.service new file mode 100644 index 0000000..6ff9978 --- /dev/null +++ b/contrib/init/linux-systemd/teamspeak-influx.service @@ -0,0 +1,23 @@ +[Unit] +Description=teamspeak influxdb exporter +Requires=teamspeak.service + +[Service] +Type=simple +User=nobody +Group=nogroup +Environment="PATH=/opt/teamspeak-influx/venv/bin:/usr/local/bin:/usr/bin:/bin" +ExecStart=/opt/teamspeak-influx/influx.py +WorkingDirectory=/opt/teamspeak-influx/ +PrivateDevices=true +ProtectControlGroups=true +ProtectHome=true +ProtectKernelTunables=true +ProtectKernelModules=yes +ProtectSystem=full +NoNewPrivileges=yes +Restart=always +RestartSec=5s + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf