bash - Issues with Screen - Running Minecraft in a while loop through a screen session -
so earlier today, changed startup scripts minecraft server. problem is, after 3 hours, screen open vanished , refuses appear when using -ls . server still running , can see below, screen process should still active? serverstart.sh called during init . , contained while loop. serverstart.sh : #/bin/bash #check see if minecraft screen running linecount=`screen -r mc | grep "there no screen resumed matching mc." | wc -l` #start minecraft server in detached screen named "c" if not running #launch command line interface minecraft if arealdy running. if [ $linecount -eq 1 ] echo linecount: $linecount. starting in deteched screen named minecraft. use screen -r minecraft view. screen -dms mc sh serverloop.sh else echo linecount: $linecount. minecraft running. use screen -r minecraft view. running now. screen -r mc fi serverloop.sh : #/bin/bash while true java -server -xms4096m -xmx16384m -xx:permsize=512m -d64 -xx:+useparnewgc -xx:+cmsi...