Server always online.

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Meiko
Newly Registered User
Posts: 2
Joined: 27 Feb 2013, 16:40

Server always online.

Post 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 !
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Server always online.

Post 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.
Former programmer for the TMWA server.
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Server always online.

Post by Ablu »

"screen" is a good thing for such stuff too.

Regards
Meiko
Newly Registered User
Posts: 2
Joined: 27 Feb 2013, 16:40

Re: Server always online.

Post 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>.
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Server always online.

Post by o11c »

nohup would need to be applied to each of the 3 commands, not just the first
Former programmer for the TMWA server.
Post Reply