How can a script check if my local server is running?
I sorted it out by using the following if in my shell script:
if ! screen -list | grep -q $SCREEN_NAME; then
ONLINE=1
else
ONLINE=0
fi
Where $SCREEN_NAME is the server's unique screen name.