Urban Terror Forums: On Linux, launching server in background? - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

On Linux, launching server in background? Rate Topic: -----

#1 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 30 January 2008 - 04:25 AM

I'm trying to start a dedicated server on Linux.  I log in to my colocated server using SSH, and then I launch the ioUrTded.i386 process.  In the terminal, it comes to a prompt.  I can play the game; I can connect to my server through the client game, and the game server shows up in the in-game browser just fine.  But how do I log out of the terminal through which I launched the server process and keep the game server running?  When I put the server process to the background and try to log out, the server process starts eating 100% of the CPU.

#2 User is offline   Parantido (old) Icon

  • Joined: 24-January 08
  • Posts: 96

Posted 30 January 2008 - 09:14 AM

I don't know what's your way to send you process in background (100% overload it's a strange issue!).

Personally i used 2 way to do that:

First: nohup command. Nohup command is present on every linux distribution, it's very simple but is unmanageable! You can start you server by:

nohup ./ioUrbanTerror.i386 blah blah &

Nohup will put your process in bg and create nohup.out file (with all process output). There's no way to resume it (you only have to kill it).

The second way (the one i like) is SCREEN command. I think you should to install screen command on your distro (on a debian apt-get install screen would be useful).

Start your server in this way:

screen -d -m ./ioUrbanTerror.i386

UrbanTerror server will be send automatically in background and you can recover it when you relogin with the following steps:

screen -r (automatically resume a prev screen if ther's only one)
screen -r pid.pty.name (if you have other screens started and you would to resume only one)

For detach a resumed screen session simply type CTRL+A and then D.

Bye

Parantido

p.s.: sry for bad english!

#3 User is offline   Woekele Icon

  •   former FS member   
    Public Relations
  • Account: woekele
  • Country:
  • Joined: 26-January 10
  • Posts: 11,575

Posted 30 January 2008 - 10:57 AM

Yeah, 'screen' certainly would be the best solution for this :)

PS: Parantido, I think that avatar is reserved for devs only :P

#4 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 30 January 2008 - 05:56 PM

Parantido, that's really useful.  Thanks a bunch!  It all works now.

- wTf|Rambetter
P.S. Server is wTf (San Diego)

#5 User is offline   defender (old) Icon

  • Joined: 30-November 07
  • Posts: 102

Posted 30 January 2008 - 09:08 PM

"at" command also works.
Try "at now"
Set full path in the prompt to your script. Press twice CTRL+D and you are done.

#6 User is offline   mitsubishi Icon

  • Account: mitsubishi
  • Country:
  • Joined: 28-February 10
  • Posts: 13,481

Posted 30 January 2008 - 09:13 PM

Quote

I think that avatar is reserved for devs only :P


where's your circle going round and around.

#7 User is offline   Woekele Icon

  •   former FS member   
    Public Relations
  • Account: woekele
  • Country:
  • Joined: 26-January 10
  • Posts: 11,575

Posted 31 January 2008 - 03:23 AM

It's deep in the pupil of my eye. Don't you see it? :)

#8 User is offline   Parantido (old) Icon

  • Joined: 24-January 08
  • Posts: 96

Posted 31 January 2008 - 10:35 AM

Sorry woekele,

it's an avatar i've found some time ago!

I've changed it!  :-D

#9 User is offline   mitsubishi Icon

  • Account: mitsubishi
  • Country:
  • Joined: 28-February 10
  • Posts: 13,481

Posted 31 January 2008 - 01:49 PM

Quote

It's deep in the pupil of my eye. Don't you see it? :)


no  it's blocked.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942