Is there a way that i can keep Teamspeak server ‘alive’ whilst restarting the webserver (Apache) ?
I do a lot with other things on my server and often restart Apache. TS is the only thing that dies when I do that and have to restart TS each time again.
Could it be that the server is using MariaDB / MySQL and the Apache restart also restarts the database server?
You can not take the database offline while TS server wants to use it!
OR could it be that a console where server was started in also does close?
Should not be a problem when startscript was used to run the server.
You want to restart the apache2 service right? Just run the Command service apache2 restart
You can see the state of every service with service --status-all
systemctl restart apache2 or service apcahe2 restart --there are a few ways but it does not matter which one i use. The result is the same.
@FakE the locale is set with en_US.UTF-8 - That’s the only entry on that file. I did update the server to 3.16.6 because server was then not getting scanned by Gametracker. I downgraded again. As you said I dont think it is that because it has been like this for many versions.
@TS.ChrisR I start the server with a self made panel on a webpage.
That is the problem. You need to replace the exec command with the actual Startscript. Otherwise the TeamSpeak process is part of the apache process and shutdown with the apache process.
I press the button on my webpage and that points to the php file : exec(’/home/smiley/cod4/commands/ts3_start.sh’); exit;
That file /ts3_start.sh) reads:
#!/bin/bash
cd /home/smiley/ts3
./ts3server
Server starts no problem. Have the same with a stop button. Changing the path in the forst instance to the sh file within ts3 directory did not work. Maybe missing something here
Saved the file and then enabled it : systemctl enable ts3server.service
Rebooted my machine and then checked with: systemctl status ts3server
ts3 was active and running. Now when I restart Apache (disconnects me form ts3 for about 10 seconds and then reconnects) or my machine it stays running. That is also starting and stopping ts3 from my home made control panel.
Thank you all very much for the help and the shove that I needed in the right direction.