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
Last revisionBoth sides next revision
linux:ubuntu:teamspeak3 [2021/11/24 21:22] lunetikklinux:ubuntu:teamspeak3 [2022/08/04 10:06] 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 138: Line 173:
 </code> </code>
  
-Unpack+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.txt · Last modified: 2022/08/04 10:07 by lunetikk