I am currently hosting a couple servers on my AWS EC2 Ubuntu 14.04 server. By default, the server doesn't have a GUI, but I installed one along with xRDP.
If I run the script from the terminal, it will continuously run until the terminal is closed. But, if I run the script by simply double clicking it, it will run in the background and keep running regardless of whether the terminal window is open.
This is a problem, because with xRDP sessions, when they close, the running windows in that session close as well. I want to be able to start and stop the servers using SSH, instead of having to manually remote desktop in.
I have a way to easily kill the servers: sudo killall -v python2.7
, and I can do this via SSH easily. The problem is, I cannot open the scripts for starting each server, because when I do, it runs the server in the terminal instance that is created on my computer. When I close that instance, the server closes as well.
So the basic, TL;DR version is that I want to be able to run a script in the background via ssh. Does anyone have any ideas?
Thanks!
Justin