So Earlier today, I changed my startup scripts for my minecraft server. Problem is, after about 3 hours, the screen for it that was open vanished and refuses to appear when using
-ls. The server is still running and from what I can see below, the screen process should still be active?
ServerStart.sh is called during
init. and originally only contained the while loop.
#/bin/bash #Check to see if a minecraft screen is already running lineCount=`screen -r mc | grep "There is no screen to be resumed matching mc." | wc -l` #Start the minecraft server in a detached screen named "c" if its not running #Launch the command line interface for minecraft if it is arealdy running. if [ $lineCount -eq 1 ] then echo linecount: $lineCount. Starting in a deteched screen named minecraft. Use screen -r minecraft to view. screen -dmS mc sh ServerLoop.sh else echo lineCount: $lineCount. Minecraft is already running. Use screen -r minecraft to view. Running now. screen -r mc fi
#/bin/bash while true do java -server -Xms4096m -Xmx16384m -XX:PermSize=512m -d64 -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTB.jar nogui echo Restarting-Give me 90 Seconds. sleep 10 done