• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Start server via Crontab

arhangel777

Well-known member
Hi,
I propose to add support for starting the TeaSpeak via cron (for example, I need to start it at system startup)

When I start via cron ( teastart_autorestart.sh start ), I get an error:
Please start the TeaSpeak-Server for the first time over teastart_minimal.sh
You could get the query interface information only over this way!
 

farhadhelix

TeaFanatic
hi
first write a script

#!/bin/bash
case $1 in
ts3server)
t3server=`ps ax | grep TeaSpeakServer | grep -v grep | wc -l`
if [ $t3server -eq 1 ]
then exit
else cd /home/YOURPATCH/teaspeak/
./teastart.sh start
fi


then save the above code as something like teaspeakanticrash.sh somewhere in your /home directory

(make sure to change the /home/YOURPATCH/teaspeak/ to your desire path)

then make a crontab -e and put

*/1 * * * * /home/yourpathctothescript/teaspeakanticrash.sh ts3server


this would do on startup and on crashes. it make sures it always up and running
 

REDOSS

TeaSpeak Team
Staff member
TeaTeam
I will probably close this topic, since it is outdated and the startup scripts work without problems.

// Closed