diff options
author | nico <nico@magicbroccoli.de> | 2020-08-27 18:10:23 +0200 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2020-08-27 18:10:23 +0200 |
commit | 893b93379fffd91c18a21315dc0b5c5d7285494c (patch) | |
tree | f17f35d763fa069ea6cec46ed199eb8e4a2fe6aa /contrib/init/linux-systemd/teamspeak-influx.service |
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
Diffstat (limited to 'contrib/init/linux-systemd/teamspeak-influx.service')
-rw-r--r-- | contrib/init/linux-systemd/teamspeak-influx.service | 23 |
1 files changed, 23 insertions, 0 deletions
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 |