Page 1 of 1

Server always online.

Posted: 27 Feb 2013, 16:45
by Meiko
Hello,

I'm not a experimented user.
I have create a TMW server on a Ubuntu 12.04 Desktop Server and I can connect in game with the TMW Client.

I'm launching the server with Putty with this command :
cd ~/tmw-ea/eathena-data/
./char-server& ./login-server& ./map-server&

But when I close Putty, the server goes offline.
Is there a way to start an application of something else to get my server always online ?

I think yes, but I don't know how.
Thanx you !

Re: Server always online.

Posted: 27 Feb 2013, 16:54
by o11c
Either run the commands under nohup, or use the following comand:

Code: Select all

shopt -u huponexit
Note that there is a ./run-all script that start the servers together and then waits for them to die.

Re: Server always online.

Posted: 27 Feb 2013, 16:56
by Ablu
"screen" is a good thing for such stuff too.

Regards

Re: Server always online.

Posted: 27 Feb 2013, 21:06
by Meiko
I have tried the 2 solutions, but the problem is still here.

I have tried to combine the 2 solutions, please tel me if the syntax is correct.

cd ~/tmw-ea/eathena-data/
shopt -u huponexit
nohup ./char-server& ./login-server& ./map-server&

Sometimes I have a message, like "Nohup.out <char-server>", but only <char-server>.

Re: Server always online.

Posted: 27 Feb 2013, 21:13
by o11c
nohup would need to be applied to each of the 3 commands, not just the first