nohup
|
HI, I'm running my RSPS server on a Ubuntu 14.04 vps by running:
I'm connecting to my server from my Ubuntu desktop via SSH by running:Code:sh run.sh
So the problem should be obvious, the SSH session disconnects over time and then my server goes offline because of the way UNIX processes work, the server its being sent a hangup signal when the SSH session disconnects.Code:ssh [email protected]
How can I solve this issue? Basically I don't want to just keep the SSH session alive longer, instead I want my RSPS to stay running forever unless I specifically tell it to close. I'm still pretty new to UNIX btw, so please explain your responses.
Cool this works, but the output goes to nohup.out instead of printing in the terminal of my SSH connection, how can I make it output there?Code:nohup java com.asgarniars.rs2.Server &
Also, how would you stop the server? Just by killing the java process, or is there a special way?
jobs - How to use unix command nohup without nohup.out - Stack Overflow
and yes kill the process works
Personally - I would change the distribution to either openSUSE or Fedora. Their parent distro's(SUSE/Red Hat) are aimed at hosting servers.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |