GS,LS close

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
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

GS,LS close

Post by Naonah »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hi :)

I run servers on Linux and use Putty to start them. All is OK but when I close Putty servers are killed, lol.

Could you tell me how to close Putty not closing sessions?

Thank you.
Best regards.
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: GS,LS close

Post by Aikimaniac »

you have to run it in separate process...not directly in putty...
Image
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: GS,LS close

Post by Naonah »

Aikimaniac wrote:you have to run it in separate process...not directly in putty...
Could you make it a bit clear? Sry :P
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
Negat1ve
Posts: 46
Joined: Thu May 07, 2009 8:46 am

Re: GS,LS close

Post by Negat1ve »

use exit command ;)
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: GS,LS close

Post by Aikimaniac »

create som file..lets name it GS_Start and open it...then put inside (with proper paths and stuff) following..make same for LS as well...if you use itemlogging...put itemlog in there as well..

Code: Select all

#!/bin/shcd /home/lineage/serverps ux > lineage.pidgalive=`grep -l 'GameServer' lineage.pid | wc -l`;if [ $galive -eq 0 ]thencd /home/lineage/server/gameserverGLOG="log/gconsole-"GMSGLOG="log/gconsole-msg-"CHATLOG="log/chat.log"[ ! -e $GLOG ] && mkfifo $GLOG[ ! -e $GMSGLOG ] && mkfifo $GMSGLOG[ ! -e $CHATOG ] && mkfifo $CHATLOG./startGameServer.sh >$GMSGLOG 2>$GLOG &fi 
Image
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: GS,LS close

Post by Naonah »

Code: Select all

 pisior@xxxxx:~/ServerFreya$ chmod +x Lserver.shpisior@xxxxx:~/ServerFreya$ ./Lserver.sh-bash: ./Lserver.sh: /bin/bash^M: bad interpreter: No such file or directorypisior@xxxxx:~/ServerFreya$ 
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: GS,LS close

Post by _DS_ »

Use windows :lol: :lol: :lol:

PS. man screen
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: GS,LS close

Post by Naonah »

Done.

I made executable files and placed them in /etc/init.d. Now I start servers by commands from root :service login start, service gameserver start.
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: GS,LS close

Post by blacksea »

use startGameServer.sh , startLoginServer.sh and you will have them in background, chmod +x first
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: GS,LS close

Post by Naonah »

blacksea wrote:use startGameServer.sh , startLoginServer.sh and you will have them in background, chmod +x first
...so scripts LoginServer_loop.sh and GameServer_loop.sh are wrong?
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: GS,LS close

Post by kotk »

startGameServer.sh and startLoginServer.sh calls the other scripts.
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: GS,LS close

Post by Naonah »

kotk wrote:startGameServer.sh and startLoginServer.sh calls the other scripts.
I think the same
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
Post Reply