Danx
By:
Danx

ubuntu 16.04 remote dedicated server startup applications

June 30, 2017 230 views
Applications Ubuntu 16.04

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.

5 Answers

Hi @Danx
Have a look at tmux - that would work for anything, since I don't know what type of code you're trying to run.

@Danx

Check this about rc.local I hope it can help you.

Make sure to put the complete path to your executable in rc.local and make sure rc.local is executable finally if your program needs sudo do not forget to add sudo before it.

Please contact me back if you need more help.

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.

@Danx

Check tmux it is very useful.

Try this to save and restore your sessions after reboot.

Hope this helps.

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.

Have another answer? Share your knowledge.