I am using GCP to run a game server and added a startup script to the VM to automatically run the gameserver in a screen, so if needed I can access the console to the server by re-attaching, the screen is starting and I am able to connect to the server so I know its their but I cannot find the screen using screen -ls
My startup script is:
#! /bin/bash
cd /home/minecraft
screen -dm java -Xmx3G -Xms2G -jar ./BTeam.jar nogui
After running screen -ls
to find the screen to re-attach to it says there are no sockets to attach to.
Any help is appreciated.