Hello im locking for a script what check every 5 seconds if the teamspeak server is online. When the script checks, that the teamspeak is offline it automaticly restart the server.
I found this:
https://forum.teamspeak.com/threads...-and-crash-restart-script-(root-amp-non-root)
but it didnt work on my server.
Im using Debian 9 64-Bit
I also found this theard:
https://r4p3.net/threads/teamspeak3-autorestart.3398/
but there is no answere
Please help me
I found this:
Bash:
#!/bin/bash
TEAMSPEAK=`ps ax | grep ts3server_linux_amd64 | grep -v grep | wc -l`
if [ $TEAMSPEAK -eq 1 ]
then
exit
else
cd /path/to/teamspeak ; ./ts3server_startscript.sh start
fi
https://forum.teamspeak.com/threads...-and-crash-restart-script-(root-amp-non-root)
but it didnt work on my server.
Im using Debian 9 64-Bit
I also found this theard:
https://r4p3.net/threads/teamspeak3-autorestart.3398/
but there is no answere
Please help me