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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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.
@Danx
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.
@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 surerc.local
is executable finally if your program needssudo
do not forget to add sudo before it.Please contact me back if you need more help.
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.