summaryrefslogtreecommitdiffstats
path: root/contrib/init/linux-systemd/teamspeak-influx.service
blob: 6ff9978a246939b870b21b1cdcc48c25c9160208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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