Page 1 of 1
GS,LS close
Posted: Thu Nov 18, 2010 10:45 am
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.
Re: GS,LS close
Posted: Thu Nov 18, 2010 10:49 am
by Aikimaniac
you have to run it in separate process...not directly in putty...
Re: GS,LS close
Posted: Thu Nov 18, 2010 10:50 am
by Naonah
Aikimaniac wrote:you have to run it in separate process...not directly in putty...
Could you make it a bit clear? Sry

Re: GS,LS close
Posted: Thu Nov 18, 2010 11:06 am
by Negat1ve
use exit command

Re: GS,LS close
Posted: Thu Nov 18, 2010 11:10 am
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
Re: GS,LS close
Posted: Thu Nov 18, 2010 11:29 am
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$
Re: GS,LS close
Posted: Thu Nov 18, 2010 11:50 am
by _DS_
Use windows
PS. man screen
Re: GS,LS close
Posted: Thu Nov 18, 2010 1:39 pm
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.
Re: GS,LS close
Posted: Thu Nov 18, 2010 2:01 pm
by blacksea
use startGameServer.sh , startLoginServer.sh and you will have them in background, chmod +x first
Re: GS,LS close
Posted: Thu Nov 18, 2010 3:39 pm
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?
Re: GS,LS close
Posted: Thu Nov 18, 2010 4:10 pm
by kotk
startGameServer.sh and startLoginServer.sh calls the other scripts.
Re: GS,LS close
Posted: Thu Nov 18, 2010 9:12 pm
by Naonah
kotk wrote:startGameServer.sh and startLoginServer.sh calls the other scripts.
I think the same