• Be part of the TeaParty!
    Click here for more information

Script to start when crash

yamano

Fanatic member
Premium User
Google it so you can learn a little bit ;)
" Crontab "
 
Last edited:

yamano

Fanatic member
Premium User
No problem ;)
But you'll not need that.. there is no crashes (in general)..
 
Last edited:

szkuta

Well-known member
crontab isnt the best way to do that
you can run a bash script like ./restart.sh &

i think its much better

but qhy you need a script like that? update to latest beta and there will be no crashes?
i dont have problems like that.
 

otalportista

Well-known member
I'm not sure but I think you have teastart_autorestart.sh because if you run and you do ctrl + c it automatically starts teaspeak again. Test and then say something, or if you do not make a script to see if the teaspeakserver is being exexutted and if it does not start
 

elzek1

Member
i have this script:

Code:
#!/bin/bash

cd /home/teaspeak/

service=TeaSpeakServer



if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))

then

echo "$service is running!!!"

else

screen -dmS screenname ./teastart_minimal.sh

fi
in anticrash.sh file whit this cron */5 * * * * /home/teaspeak/anticrash.sh

Every 5 minuts check if teaspeakserver is running