Reboot GS, LS, CS

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
FreeD
Posts: 47
Joined: Wed Oct 06, 2010 2:01 pm

Reboot GS, LS, CS

Post 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.
User avatar
Flashy
Posts: 310
Joined: Mon Sep 29, 2008 11:49 am
Location: Germany

Re: Reboot GS, LS, CS

Post 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 
n0name12
Posts: 38
Joined: Tue Sep 29, 2009 2:29 pm

Re: Reboot GS, LS, CS

Post 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.
FreeD
Posts: 47
Joined: Wed Oct 06, 2010 2:01 pm

Re: Reboot GS, LS, CS

Post 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
Phantom2005
Posts: 72
Joined: Wed Jul 06, 2005 4:27 pm
Location: Netherlands

Re: Reboot GS, LS, CS

Post 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:
"If 64 bits isn't enough, the next logical step is 128 bits. That's enough to survive Moore's Law until I'm dead, and after that, it's not my problem."
©Jeff Bonwick
FreeD
Posts: 47
Joined: Wed Oct 06, 2010 2:01 pm

Re: Reboot GS, LS, CS

Post by FreeD »

course :) it saves data, i hope :mrgreen: terminal says that Players disconected, data saved bla bla bla
Post Reply