Site Tools


linux:ubuntu:teamspeak3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ubuntu:teamspeak3 [2021/11/24 21:22] lunetikklinux:ubuntu:teamspeak3 [2022/08/04 10:07] (current) – [failed to register local accounting service: File exists] lunetikk
Line 22: Line 22:
 Unpack Unpack
 <code> <code>
-tar -xjf PACKAGE+tar -xjf <PACKAGE>
 </code> </code>
  
Line 75: Line 75:
 ===== Create Service ===== ===== Create Service =====
  
 +Create a new unit "/etc/systemd/system/teamspeak.service" with the following content
 +<code>
 +[Unit]
 +Description=TeamSpeak3 Server
 +Wants=network-online.target
 +After=syslog.target network.target
 +
 +[Service]
 +WorkingDirectory=/teamspeak/teamspeak3-server_linux-amd64/
 +User=teamspeak
 +Type=forking
 +ExecStart=/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh start initfile=ts3server.ini
 +ExecStop=/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
 +ExecReload=/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh restart
 +PIDFile=/teamspeak/teamspeak3-server_linux_amd64/ts3server.pid
 +   
 +[Install]
 +WantedBy=multi-user.target
 +</code>
 +
 +Incase you already had this file and/or changed anything, run "systemctl daemon-reload" to reload the units
 +
 +Add the service to autostart
 +<code>
 +systemctl enable teamspeak
 +</code>
 +
 +You can now start/stop/restart and see the status of the service via the following commands
 +<code>
 +systemctl start teamspeak
 +systemctl stop teamspeak
 +systemctl restart teamspeak
 +systemctl status teamspeak
 +</code>
  
 +[[https://teamspeak.wiki/index.php/Systemd_Unit|https://teamspeak.wiki/index.php/Systemd_Unit]]
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 91: Line 126:
 __Fix:__ \\ __Fix:__ \\
 Check for a cryptic file in /dev/shm/\\ Check for a cryptic file in /dev/shm/\\
-<code>#ls -al /dev/shm/+<code>ls -al /dev/shm/
 total 39228 total 39228
 drwxrwxrwt  2 root      root        1800 Dez  5 11:41 . drwxrwxrwt  2 root      root        1800 Dez  5 11:41 .
Line 101: Line 136:
  
 If you start teamspeak now, the file will be created with the correct user\\ If you start teamspeak now, the file will be created with the correct user\\
-<code>ls -al /dev/shm/        total 39228+<code>ls -al /dev/shm/         
 +total 39228
 drwxrwxrwt  2 root      root         1800 Dez  5 12:10 . drwxrwxrwt  2 root      root         1800 Dez  5 12:10 .
 drwxr-xr-x 17 root      root         3640 Nov 13 06:47 .. drwxr-xr-x 17 root      root         3640 Nov 13 06:47 ..
Line 140: Line 176:
 Unpack (overwrite the existing folder) Unpack (overwrite the existing folder)
 <code> <code>
-tar -xvf PACKAGE+tar -xvf <PACKAGE>
 </code> </code>
  
 and start as usual and start as usual
 <code> <code>
-su - teamspeak +systemctl start teamspeak
-./ts3server_startscript.sh start+
 </code> </code>
  
 [[https://forum.teamspeak.com/threads/137119-Server-error-quot-Failed-loading-default-license-file!-quot/page5|https://forum.teamspeak.com/threads/137119-Server-error-quot-Failed-loading-default-license-file!-quot/page5]] [[https://forum.teamspeak.com/threads/137119-Server-error-quot-Failed-loading-default-license-file!-quot/page5|https://forum.teamspeak.com/threads/137119-Server-error-quot-Failed-loading-default-license-file!-quot/page5]]
linux/ubuntu/teamspeak3.1637785375.txt.gz · Last modified: 2021/11/24 21:22 by lunetikk