We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Install L2JServer in Ubuntu Server Version

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Dasipodide
Posts: 2
Joined: Mon Aug 29, 2016 10:37 am

Re: Install L2JServer in Ubuntu Server Version

Post by Dasipodide » Thu Sep 29, 2016 9:57 am

Yes I know this, probably I didn't explain my problem in the right way.

I want to see the various echo command inside the script, something like

Code: Select all

Game Server shutted down. Shutting down the Game Java Server
and so on.

Look at that portion of the script

Code: Select all

#!/bin/sh

# Change here your home directory for Lineage server. Absolute path
base=/srv/L2J_Server/

stop_l2parallel() {
        #Stop Game Server script and java
        if [ -n "$(pgrep -f GameServer_loop.sh)" ]; then
                pkill -f GameServer_loop.sh
                echo Script del Game Server fermato
        else
                echo =========================================
                echo Script del Game Server non in esecuzione!
                echo =========================================
        fi
As you can see I have a lot of echo commands inside, but when I run

Code: Select all

service l2server stop
in shell nothing appears, just freeze for a little (the time needed to work the stop process) and than the normal prompt

Code: Select all

xxxxxxxx@vps287812:~# service l2server stop
xxxxxxxx@vps287812:~#

User avatar
Sacrifice
Advanced User
Advanced User
Posts: 906
Joined: Thu Aug 14, 2014 6:31 am
Location: Spain

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice » Thu Sep 29, 2016 10:01 am

To do that, you need the graphical environment (probably nots your case) and would leave the window open with the tail of each log.
Lineage 2: The Chaotic Throne: High Five (CT2.6)
GitLab https://gitlab.com/Sacrifice GitHub https://github.com/Sacrifice BitBucket https://bitbucket.org/Sacrifice_

User avatar
Sacrifice
Advanced User
Advanced User
Posts: 906
Joined: Thu Aug 14, 2014 6:31 am
Location: Spain

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice » Thu Sep 29, 2016 6:05 pm

Check this share and comment how go
https://bitbucket.org/snippets/Sacrifice78/eoER9
Lineage 2: The Chaotic Throne: High Five (CT2.6)
GitLab https://gitlab.com/Sacrifice GitHub https://github.com/Sacrifice BitBucket https://bitbucket.org/Sacrifice_

User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 169
Joined: Tue Jan 12, 2016 3:53 am

Re: Install L2JServer in Ubuntu Server Version

Post by ShinichiYao » Wed Oct 11, 2017 9:51 am

Sacrifice wrote:
Thu Sep 29, 2016 6:05 pm
Check this share and comment how go
https://bitbucket.org/snippets/Sacrifice78/eoER9
Link is dead. I also want to know how to display the log message instead of running in the background.

User avatar
Sacrifice
Advanced User
Advanced User
Posts: 906
Joined: Thu Aug 14, 2014 6:31 am
Location: Spain

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice » Thu Oct 12, 2017 6:08 am

This in real time

Code: Select all

tail -f /home/xxxx/l2jserver/game/log/stdout.log
This all log till command invocation

Code: Select all

cat /home/xxxx/l2jserver/game/log/stdout.log
`xxxx` is the user name....
Lineage 2: The Chaotic Throne: High Five (CT2.6)
GitLab https://gitlab.com/Sacrifice GitHub https://github.com/Sacrifice BitBucket https://bitbucket.org/Sacrifice_

Post Reply