Picture of D Broom
Keeping Adapt running when closing a connection
by D Broom - Tuesday, 1 November 2016, 9:12 AM
 

Hi.

I have managed to install Adapt onto an Amazon EC2 Instance running Amazon Linux.  Whilst I am remotely logged onto the machine through smarTTY, Adapt works perfectly.  When I terminate the connection Adapt stops working.

I have tried to keep Adapt running in the background using "&", "bg" and "nohup" but this causes problems for the Adapt instance to run Grunt and I get errors when previewing, or adding graphic components to the course.

How do I keep Adapt running properly when i close my SSH connection to the server?

Picture of D Broom
Re: Keeping Adapt running when closing a connection
by D Broom - Tuesday, 1 November 2016, 1:48 PM
 

It looks like i have found a solution.

If you run the "Node Server" command in a Screen then the process still continues when you log out.

Details on screen can be found here:

http://www.ibm.com/developerworks/aix/library/au-gnu_screen/

More info is here:

http://serverfault.com/questions/311593/keeping-a-linux-process-running-after-i-logout

Basically from the terminal command line type:

  1. Screen and press enter
  2. Run the node command to get the Adapt server up and running
  3. Press Ctrl + A, D to get out of the screen.