or you can create an archive called "restarter.sh" and put this code inside:
Code:
#!/bin/bash
ulimit -c unlimited
while true; do ./tfs --log-file "output.txt" "error.txt"; done
then before starting your server write this command on screen (open a screen before ofc): ./restarter.sh
Ps. maybe need a especial permission before, so write chmod 777 restarter.sh