Thread: Keep My Server Running Without Hangup

Results 1 to 5 of 5
  1. #1 Keep My Server Running Without Hangup 
    Banned

    Join Date
    Oct 2009
    Posts
    734
    Thanks given
    168
    Thanks received
    54
    Rep Power
    0
    HI, I'm running my RSPS server on a Ubuntu 14.04 vps by running:

    Code:
    sh run.sh
    I'm connecting to my server from my Ubuntu desktop via SSH by running:

    Code:
    ssh [email protected]
    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.

    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.
    Reply With Quote  
     

  2. #2  
    Registered Member
    natsu's Avatar
    Join Date
    Apr 2007
    Age
    32
    Posts
    3,435
    Thanks given
    1,084
    Thanks received
    676
    Rep Power
    1096
    nohup
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2009
    Posts
    734
    Thanks given
    168
    Thanks received
    54
    Rep Power
    0
    Quote Originally Posted by natsu View Post
    nohup
    Code:
    nohup java com.asgarniars.rs2.Server &
    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?

    Also, how would you stop the server? Just by killing the java process, or is there a special way?
    Reply With Quote  
     

  4. #4  
    Registered Member
    natsu's Avatar
    Join Date
    Apr 2007
    Age
    32
    Posts
    3,435
    Thanks given
    1,084
    Thanks received
    676
    Rep Power
    1096
    Quote Originally Posted by anarchypk508 View Post
    Code:
    nohup java com.asgarniars.rs2.Server &
    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?

    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
    Reply With Quote  
     

  5. #5  
    Registered Member Mont's Avatar
    Join Date
    Oct 2014
    Posts
    32
    Thanks given
    1
    Thanks received
    3
    Rep Power
    6
    Personally - I would change the distribution to either openSUSE or Fedora. Their parent distro's(SUSE/Red Hat) are aimed at hosting servers.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] my server runs fine on my pc but not my vps
    By OrbitalPride in forum Help
    Replies: 4
    Last Post: 12-21-2011, 10:14 PM
  2. paying $10 for getting my server running on vps
    By danster549 in forum Buying
    Replies: 5
    Last Post: 12-04-2011, 01:37 PM
  3. Replies: 2
    Last Post: 09-09-2011, 11:38 AM
  4. Replies: 16
    Last Post: 07-11-2011, 02:56 PM
  5. Help me get my server running global??
    By ryannathans in forum Requests
    Replies: 3
    Last Post: 03-23-2009, 03:13 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •