TeamSpeak 3 server on systemd (Ubuntu 18.04, Debian 9, CentOS 7)

Create a user for the teamspeak server and switch to it

adduser --disabled-login teamspeak
su teamspeak

Get the latest TeamSpeak 3 files for 64-bit Linux server and unpack it

tar xvf teamspeak3-server_linux_amd64-*.tar.bz2

Get the admin token

cd teamspeak3-server_linux_amd64
touch .ts3server_license_accepted
sh ts3server_startscript.sh start

Make the daemon file

nano /lib/systemd/system/teamspeak3-server.service
[Unit]
Description=TeamSpeak 3 Server
After=network.target

[Service]
Environment=LD_LIBRARY_PATH=/home/teamspeak/teamspeak3-server_linux_amd64/
WorkingDirectory=/home/teamspeak/teamspeak3-server_linux_amd64/
Type=simple
ExecStart=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server inifile=ts3server.ini license_accepted=1
User=teamspeak
Group=teamspeak
StandardOutput=journal
StandardError=inherit
RestartSec=30

[Install]
WantedBy=multi-user.target

Enable the daemon

systemctl daemon-reload
systemctl start teamspeak3-server.service
systemctl enable teamspeak3-server.service

Ports used by TS3

  • 9987/UDP
  • 30033/TCP
  • 10011/TCP

Leave a Reply

Your email address will not be published. Required fields are marked *