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

Autorestart if crash?

h1web

Well-known member
Hey,

is there any Anti-Crash Script that automatically restart TeaSpeak whenever its crashed or the process is not running?

Cheers
 

Kevinos

Fanatic member
Premium User
Create a file .sh and put this file on a cron :

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