I've apt-get install gbd, so created this script (like i saw in a tutorial)
autorestart.sh
Code:
#!/bin/bash
ulimit -c unlimited
while true;
do
echo "Restart : `date +%d-%m-%Y--%H:%M`" >> ./restart.log
./tfs --log-file "output.txt" "error.txt"
sleep 10
done
So when crash, show me this:
[18:0:19.379] >> WarriorsOtserver server Online!
./autorestart.sh: line 8: 7696 Segmentation fault (core dumped) ./tfs --log-file "output.txt" "error.txt"
[18:0:42.512] The Forgotten Server 0.4
[18:0:42.512] >> Loading config (config.lua)
Where i can see that output.txt and error.txt?