1 Answer
Updating TeamSpeak 3
Create the user if you don't have one yetsudo adduser --disabled-login teamspeak
Stop TeamSpeaksudo /etc/init.d/teamspeak stop
Change to the TeamSpeak dircd /opt/teamspeak3
Backup TeamSpeaksudo tar -czvf /opt/teamspeak3/ts3_backup.tar.gz /opt/teamspeak3/teamspeak3-server_linux-amd64
Download the latest version
sudo wget http://dl.4players.de/ts/releases/3.0.13.6/teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2
Unpack the update
sudo tar -xjf teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2
sudo cp -r teamspeak3-server_linux_amd64/. server
sudo chown -R teamspeak:teamspeak server
Start TeamSpeak:sudo /etc/init.d/teamspeak start
Edit the script sudo nano /etc/init.d/teamspeak and add the following content:
#!/bin/sh
### BEGIN INIT INFO
# Provides: teamspeak
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Teamspeak 3 Server
### END INIT INFO
######################################
# Customize values for your needs: "User"; "DIR"
USER="teamspeak"
DIR="/opt/teamspeak3/server"
###### Teamspeak 3 server start/stop script ######
case "$1" in
start)
su $USER -c "${DIR}/ts3server_startscript.sh start"
;;
stop)
su $USER -c "${DIR}/ts3server_startscript.sh stop"
;;
restart)
su $USER -c "${DIR}/ts3server_startscript.sh restart"
;;
status)
su $USER -c "${DIR}/ts3server_startscript.sh status"
;;
*)
echo "Usage: {start|stop|restart|status}" >&2
exit 1
;;
esac
exit 0
Make the script executable and install it:
sudo chmod +x /etc/init.d/teamspeak
sudo update-rc.d teamspeak defaults
start the service,
sudo /etc/init.d/teamspeak start
sudo /etc/init.d/teamspeak stop
sudo /etc/init.d/teamspeak restart
sudo /etc/init.d/teamspeak status
Your Answer