Page 3 of 3

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Sep 29, 2016 9:57 am
by Dasipodide
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:~#

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Sep 29, 2016 10:01 am
by Sacrifice
To do that, you need the graphical environment (probably nots your case) and would leave the window open with the tail of each log.

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Sep 29, 2016 6:05 pm
by Sacrifice
Check this share and comment how go
https://bitbucket.org/snippets/Sacrifice78/eoER9

Re: Install L2JServer in Ubuntu Server Version

Posted: Wed Oct 11, 2017 9:51 am
by ShinichiYao
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.

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Oct 12, 2017 6:08 am
by Sacrifice
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....