Bash_Scripts/CentOS/7-Days-To-Die/7D2D-Serv-Handler.bash

5 lines
156 B
Bash

until "${1}/"startserver.sh -configfile="${1}/"serverconfig.xml; do
echo "Server died with code $?, restarting in 60 seconds..." >&2
sleep 60;
done