Page 1 of 1

Reboot GS, LS, CS

Posted: Thu Dec 09, 2010 9:21 am
by FreeD
Hi all :)
Tell me, please, somebody, how to reboot gameserver or loginserver (communityserver) in linux-systems? In Windows i can just CTRL+C in console, but how to do it in linux (CentOS).
I do not want to kill PID.

Re: Reboot GS, LS, CS

Posted: Thu Dec 09, 2010 10:19 am
by Flashy
use not only "kill" set signal type "term" to kill command to shutdown the process..
instead kill -9 PID use kill -15 PID

for example: terminate all java processes from user l2j

Code: Select all

 for ID in `ps -u l2j | grep java | awk '{print $1}'`do      kill -15 $IDdone 

Re: Reboot GS, LS, CS

Posted: Thu Dec 09, 2010 11:30 am
by n0name12
Flashy wrote:use not only "kill" set signal type "term" to kill command to shutdown the process..
instead kill -9 PID use kill -15 PID

for example: terminate all java processes from user l2j

Code: Select all

 for ID in `ps -u l2j | grep java | awk '{print $1}'`do      kill -15 $IDdone 
That would exit the process without saving data. Which could lead to data loss. Don't do that for live servers !
The only way to reboot your servers without logging in game is by telnet. Search for *fork* linux guide or telnet commands.

Re: Reboot GS, LS, CS

Posted: Fri Dec 10, 2010 8:58 am
by FreeD
i tried kill PID, in log of GS i see that data saves, just kill pid without levels.

for example

Code: Select all

kill 4895

Re: Reboot GS, LS, CS

Posted: Fri Dec 10, 2010 11:39 am
by Phantom2005
I believe that when u close L2J GameServer in Windows it starts to shut it down as well (Saving data.. blabla)
So I guess it's the same for Linux like you said.

Just don't close it forcefully :mrgreen:

Re: Reboot GS, LS, CS

Posted: Fri Dec 10, 2010 4:23 pm
by FreeD
course :) it saves data, i hope :mrgreen: terminal says that Players disconected, data saved bla bla bla