ubuntu 16.04 remote dedicated server startup applications

So I have a remotely hosted, dedicated server i’m setting up to run a cryptocurrency mining pool. That part doesn’t matter. I can SSH to a command prompt and run each of the programs I need in separate remote windows and everything works fine, but when I close them or shut off my home computer they stop running.

I’ve tried creating services, but just get errors. I read something about rc.local, but not sure how to set that up either. After days of getting everything configured and working, I get stumped by something that should be simple. I’m a bit new to Ubuntu so getting the paths and syntax right are probably my issue.

2 of the applications I can run from anywhere, so i’m not sure the exact path or if I even need that, the 3rd is a long drawn out path with an even longer set of arguments that go after it.

Any help would be appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You have saved my life, and sanity. You may have my first born. And second born too. Oh wait, I wouldn’t wish that on anyone.


Check tmux it is very useful.

Try this to save and restore your sessions after reboot.

Hope this helps.

Not exactly what I’m looking for. Like I said, I have a server that is not located near me. I need to have it run some applications when it starts up and leave them running without me having to remotely connect to the server and start them and leave my computer running.