I am running a startup script on Compute Engine,env is Ubuntu 16.04 , the script is running a screen and then running a process inside the screen.
All the echo lines are printed onto the Serial port 1 screen.
The problem is when I SSH into the machine there is no screen running.
I tested each of the lines to make sure they are working.
Can someone help me understand the problem?
The script:
#! /bin/bash
echo "going to sleep"
echo "starting bitcored"
screen -d -m -S testScreen 'bitcored'
echo "bitcored started"