Question

How to keep droplet active after closing terminal

Posted January 10, 2018 4.1k views
DigitalOcean

I rent a droplet and run a python program on it. However if I close my terminal the program closes, how do I keep it active?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers
by Justin Ellingwood
In this article, we will discuss how to install and use "screen", a tool that allows you to manage multiple shell sessions inside a single terminal. The screen program is very useful for multi-tasking in an ssh environment, due to its ability to resume terminal sessions and perform multiple-concurrent tasks.

+1 on the comment above about GNU Screen.

You might also find the link below helpful - https://askubuntu.com/questions/8653/how-to-keep-processes-running-after-ending-ssh-session . This specifically talks about different commands relevant for your use case.

Submit an Answer