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.
Advertisement
Page 1 of 1
On Linux, launching server in background?
#2
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!
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!
Page 1 of 1
1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users
Advertisement