Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
For all that want a auto-restart script using systemd
To create a script that auto-restarts, you could setup a systemd script. systemd is a system and service manager for Linux which has become the de facto initialization daemon for most new Linux distributions. First implemented in Fedora, systemd now comes with RHEL 7 and its derivatives like CentOS 7. Ubuntu 15.04 ships with native systemd as well. Other distributions have either incorporated systemd, or announced they will soon.
Follow the next steps to creat this script:
Create the new script:
cat > /etc/systemd/system/teamspeak3.service << EOF
[Unit]
Description=TeamSpeak3 Server
Wants=network-online.target
After=syslog.target network.target
[Service]
WorkingDirectory=/opt/teamspeak3-server
User=teamspeak3-user
Type=forking
Restart=always
ExecStart=/opt/teamspeak3-server/ts3server_startscript.sh start initfile=ts3server.ini
ExecStop=/opt/teamspeak3-server/ts3server_startscript.sh stop
ExecReload=/opt/teamspeak3-server/ts3server_startscript.sh reload
PIDFile=/opt/teamspeak3-server/ts3server.pid
[Install]
WantedBy=multi-user.target
EOF
Hit enter
Now stop the current server and disable the init.d script:
/etc/init.d/ts3 stop
update-rc.d ts3 disable
Enable the new systemd script, and start it.
systemctl enable teamspeak3
systemctl start teamspeak3
Troubleshooting teamspeak server won’t start It is possible your server won’t start, when you got one of the following errors:
failed to update local accounting service
Server() error while starting servermanager, error: instance check error
This error happens when you don’t have a license and the teamspeak service doesn’t have the ability to check the Debian server for other teamspeak servers running. Check the following:
Quote Originally Posted by Server_quickstart.txt In some cases, the server process terminates on startup and the error message reads “Server() error while starting servermanager, error: instance check error”. As long as you don’t have a license key embededded we make sure you only run exactly one instance of the TS3 server free unregistered version. We use shared memory to facilitate the communication to detect other running instances, which requires tmpfs to be mounted at /dev/shm. If you (for whatever reason) do not have this mounted, the above error will occur.
To fix this problem, the following commands or file edits need to be done as root user (or using something like sudo). This is a temporary fix until your next reboot.
mount -t tmpfs tmpfs /dev/shm
Now, to make sure this mount is done automatically upon reboot edit the file /etc/fstab and add the line:
tmpfs /dev/shm tmpfs defaults 0 0
Works great. A note for those on the latest version of teamspeak you need to accept the license agreement with a global environment variable or with a file. Easy to implement:
[sudo touch /opt/teamspeak3-server/.ts3server_license_accepted]
Hope that helps anyone with a server that won’t start.